Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change: disable version counter for queries: #1549

Merged
merged 4 commits into from
Jan 26, 2017
Merged

Change: disable version counter for queries: #1549

merged 4 commits into from
Jan 26, 2017

Conversation

arikfr
Copy link
Member

@arikfr arikfr commented Jan 26, 2017

Since the move to SQLAlchemy, version is managed automatically. When running a query, the worker updates the query row and increments the version. This results in the user's inability to save the query after that.

From reviewing SQLA's documentation, it looks like we will have to manage the version value ourselves. For now, I'm just disabling the version auto increment. In a follow up update we need to actually implement the manual increment where we think it's needed.

Since the move to SQLAlchemy, version is managed automatically.
When running a query, the worker updates the query row and increments
the version. This results in the user's inability to save the query
after that.

From reviewing SQLA's documentation, it looks like we will have to
manage the version value ourselves. For now, I'm just disabling the
version auto increment. In a follow up update we need to actually
implement the manual increment where we think it's needed.
@arikfr arikfr merged commit ff28b75 into master Jan 26, 2017
@arikfr arikfr deleted the change_tracking branch January 26, 2017 20:36
dairyo pushed a commit to KiiCorp/redash that referenced this pull request Mar 1, 2019
Change: disable version counter for queries:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant