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 sorting column in admin panel to prevent server crash #344

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

tsubik
Copy link
Collaborator

@tsubik tsubik commented Oct 18, 2022

I think that this is because the old version of active admin which uses old version of ransack. When sorting by for example countries_translations.name in operator LIMIT and OFFSET is removed from query what is causing the whole dataset to load.

@santostiago
Copy link
Contributor

I'll also check the timeouts for AR and the DB

@tsubik
Copy link
Collaborator Author

tsubik commented Oct 21, 2022

I think that might be something with Postgres (like using old version), because it just takes all CPU for those queries after couple seconds and system freezes.

…s there is no limit in query and returns whole dataset and that is too much
@tsubik tsubik merged commit 5433d00 into develop Oct 21, 2022
@tsubik tsubik deleted the hot-fix/sorting-columns branch October 21, 2022 08:09
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.

None yet

2 participants