-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2718 from ziv17/2699-street-cache
Improve street cache update time
- Loading branch information
Showing
3 changed files
with
56 additions
and
29 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
alembic/versions/e962054e4422_add_street_numeric_indexes_to_involved_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
"""add street numeric indexes to involved heberw | ||
Revision ID: e962054e4422 | ||
Revises: mn9px8cacn24 | ||
Create Date: 2024-10-20 08:24:08.746964 | ||
""" | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'e962054e4422' | ||
down_revision = 'mn9px8cacn24' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
from alembic import op | ||
# import sqlalchemy as sa | ||
|
||
|
||
def upgrade(): | ||
op.create_index('ix_involved_markers_hebrew_street1', | ||
'involved_markers_hebrew', ['street1'], unique=False) | ||
op.create_index('ix_involved_markers_hebrew_street2', | ||
'involved_markers_hebrew', ['street2'], unique=False) | ||
|
||
|
||
def downgrade(): | ||
op.drop_index('ix_involved_markers_hebrew_street1', 'involved_markers_hebrew') | ||
op.drop_index('ix_involved_markers_hebrew_street2', 'involved_markers_hebrew') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters