Skip to content

Commit 115fa65

Browse files
committed
Remove unused indexes to fit into myisam constraints
1 parent a83d366 commit 115fa65

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/codspeed.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CodSpeed
22

33
on:
4+
push:
5+
branches:
6+
- main
47
pull_request:
58
# `workflow_dispatch` allows CodSpeed to trigger backtest
69
# performance analysis in order to generate initial data.
@@ -14,6 +17,7 @@ jobs:
1417
- uses: actions/checkout@v4
1518
- uses: actions/setup-python@v5
1619
with:
20+
# 3.12 is the minimum reqquired version for profiling enabled
1721
python-version: "3.12"
1822

1923
- name: Install and configure Poetry

tests/testmodels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,13 +1003,13 @@ class CallableDefault(Model):
10031003
class BenchmarkFewFields(Model):
10041004
timestamp = fields.DatetimeField(auto_now_add=True)
10051005
level = fields.SmallIntField(index=True)
1006-
text = fields.CharField(max_length=255, index=True)
1006+
text = fields.CharField(max_length=255)
10071007

10081008

10091009
class BenchmarkManyFields(Model):
10101010
timestamp = fields.DatetimeField(auto_now_add=True)
10111011
level = fields.SmallIntField(index=True)
1012-
text = fields.CharField(max_length=255, index=True)
1012+
text = fields.CharField(max_length=255)
10131013

10141014
col_float1 = fields.FloatField(default=2.2)
10151015
col_smallint1 = fields.SmallIntField(default=2)

0 commit comments

Comments
 (0)