-
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.
Track both query start time and button push time to track delay (#2502)
* Track both query start time and button push time to track delay * Fix * Setting the proper precision * More logging
- Loading branch information
1 parent
f374345
commit 9116766
Showing
4 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
superset/migrations/versions/a6c18f869a4e_query_start_running_time.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 @@ | ||
"""query.start_running_time | ||
Revision ID: a6c18f869a4e | ||
Revises: 979c03af3341 | ||
Create Date: 2017-03-28 11:28:41.387182 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a6c18f869a4e' | ||
down_revision = '979c03af3341' | ||
|
||
|
||
|
||
def upgrade(): | ||
op.add_column( | ||
'query', | ||
sa.Column('start_running_time', | ||
sa.Numeric(precision=20, scale=6), | ||
nullable=True)) | ||
|
||
|
||
def downgrade(): | ||
op.drop_column('query', 'start_running_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