With Pascal's suggestion, I added a new index:
CREATE INDEX fm_order_sid_type_idx ON fm_order (session_id, type);
Thank you, Pascal!
On Thu, Jan 24, 2019 at 9:52 AM Jan Nielsen <jan.sture.nielsen@xxxxxxxxx> wrote:
On Wed, Jan 23, 2019 at 12:37 PM legrand legrand <legrand_legrand@xxxxxxxxxxx> wrote:Hi,
is there an index on
fm_order(session_id,type)?There isn't at the moment:table_name | index_name | column_name----------------+------------------------------+-------------fm_account | fm_account_pkey | idfm_account | uk_5p6qalvucbxmw9u64wf0aif9d | namefm_allocation | fm_allocation_pkey | idfm_approval | fm_approval_pkey | idfm_capital | fm_capital_pkey | idfm_grant | fm_grant_pkey | idfm_market | fm_market_pkey | idfm_marketplace | fm_marketplace_pkey | idfm_order | fm_order_pkey | idfm_person | fm_person_pkey | idfm_session | fm_session_pkey | idfm_trader | fm_trader_pkey | id
regards
PAscal