Skip to content

Commit

Permalink
Remove unused indexes to fit into myisam constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
henadzit committed Dec 29, 2024
1 parent c61b76c commit 8cd850b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CodSpeed

on:
push:
branches:
- main
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
Expand All @@ -14,6 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
# 3.12 is the minimum reqquired version for profiling enabled
python-version: "3.12"

- name: Install and configure Poetry
Expand Down
4 changes: 2 additions & 2 deletions tests/testmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -1003,13 +1003,13 @@ class CallableDefault(Model):
class BenchmarkFewFields(Model):
timestamp = fields.DatetimeField(auto_now_add=True)
level = fields.SmallIntField(index=True)
text = fields.CharField(max_length=255, index=True)
text = fields.CharField(max_length=255)


class BenchmarkManyFields(Model):
timestamp = fields.DatetimeField(auto_now_add=True)
level = fields.SmallIntField(index=True)
text = fields.CharField(max_length=255, index=True)
text = fields.CharField(max_length=255)

col_float1 = fields.FloatField(default=2.2)
col_smallint1 = fields.SmallIntField(default=2)
Expand Down

0 comments on commit 8cd850b

Please sign in to comment.