-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding
end_result_backend_time
to Query model (#2766)
This will help us keep track on how long it takes to push the data into the results backend.
- Loading branch information
1 parent
960b26c
commit 2395fbb
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
superset/migrations/versions/a65458420354_add_result_backend_time_logging.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,26 @@ | ||
"""add_result_backend_time_logging | ||
Revision ID: a65458420354 | ||
Revises: 2fcdcb35e487 | ||
Create Date: 2017-04-25 10:00:58.053120 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a65458420354' | ||
down_revision = '2fcdcb35e487' | ||
|
||
|
||
def upgrade(): | ||
op.add_column( | ||
'query', | ||
sa.Column( | ||
'end_result_backend_time', | ||
sa.Numeric(precision=20, scale=6), | ||
nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('query', 'end_result_backend_time') |
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