You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a node which is set to sync many paranets at the same time, MySQL consumes a decent amount of resources and I noticed this:
It does a lot of UPDATE to get table using operation_id in WHERE clause.
But the table is missing index on operation_id.
I've added index below and it helped to reduce time for these UPDATE to complete, as well as resource consumption a bit. ALTER TABLE get ADD INDEX idx_operation_id (operation_id);
My get table is ~500k rows, so it makes sense that lack of index is visible now.
The text was updated successfully, but these errors were encountered:
I have a node which is set to sync many paranets at the same time, MySQL consumes a decent amount of resources and I noticed this:
It does a lot of
UPDATE
toget
table usingoperation_id
inWHERE
clause.But the table is missing index on
operation_id
.I've added index below and it helped to reduce time for these
UPDATE
to complete, as well as resource consumption a bit.ALTER TABLE get ADD INDEX idx_operation_id (operation_id);
My
get
table is ~500k rows, so it makes sense that lack of index is visible now.The text was updated successfully, but these errors were encountered: