Details
Assignee
UnassignedUnassignedReporter
Roman_FedynyshynRoman_FedynyshynPriority
P2Development Team
PTFTestRail: Cases
Open TestRail: CasesTestRail: Runs
Open TestRail: Runs
Details
Details
Assignee
Unassigned
UnassignedReporter
Roman_Fedynyshyn
Roman_FedynyshynPriority
Development Team
PTF
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created February 16, 2023 at 12:07 PM
Updated March 6, 2024 at 7:31 AM
This API call takes over 90 minutes to complete because it does sequential scanning of the table that has over 18M records.
/inventory/instances?offset=0&limit=250&query=metadata.updatedDate>2023-02-10T03:39:00Z or metadata.createdDate>2023-02-10T03:39:00Z
The CQL query yielded this SQL query:
The performance of this query needs to be improved possibly by creating an index on instance.jsonb->‘metadata’->>‘createdDate’ json field in mod_inventory_storage.instance (see 's comment below, or something else more appropriate).