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
history_operation_participants has a composite index hist_op_p_id on (history_account_id, history_operation_id) fields. When running "payments for account" query:
Postgres query planner opt to use history_account_id part of the index and because history_operation_id is not used in a query the execution was slow.
This can be fixed by changing the query to use hopp.history_operation_id instead of hop.id when filtering and ordering results. The query is equivalent to the previous one but is using all fields of history_operation_participants.hist_op_p_id index.
Initial fix in #439 but was closed because the code should be improved.
The text was updated successfully, but these errors were encountered:
history_operation_participants
has a composite indexhist_op_p_id
on(history_account_id, history_operation_id)
fields. When running "payments for account" query:Postgres query planner opt to use
history_account_id
part of the index and becausehistory_operation_id
is not used in a query the execution was slow.This can be fixed by changing the query to use
hopp.history_operation_id
instead ofhop.id
when filtering and ordering results. The query is equivalent to the previous one but is using all fields ofhistory_operation_participants.hist_op_p_id
index.Initial fix in #439 but was closed because the code should be improved.
The text was updated successfully, but these errors were encountered: