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

minor optimization for get_response table, operation_id index #3370

Open
botnumberseven opened this issue Oct 28, 2024 · 0 comments
Open

minor optimization for get_response table, operation_id index #3370

botnumberseven opened this issue Oct 28, 2024 · 0 comments

Comments

@botnumberseven
Copy link

During paranet sync process node execute a lot of queries like this (see below).

I've added index below and it helped to reduce time for these SELECT to complete, as well as resource consumption a bit.
ALTER TABLE get_response ADD INDEX idx_operation_id (operation_id ASC);

SELECT status, keyword
FROM get_response AS get_response
WHERE get_response.operation_id = 'ca68e1c5-63e0-4027-a4da-4585dffe62bd'

@botnumberseven botnumberseven changed the title minor optimization for get_responsetable, operation_idindex minor optimization for get_response table, operation_id index Oct 28, 2024
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

No branches or pull requests

1 participant