Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Duplicate
-
None
-
None
-
-
Core: Platform
Description
Using CQL to filter the instances by ID results in poor performance.
evaluk can you please provide a SQL generated in this case
CQL query:
/instance-storage/instances?query=id=6312d172-f0cf-40f6-b27d-9fa8feaf332f
Resulting SQL:
WHERE lower(f_unaccent(instance.jsonb->>'id')) ~ lower(f_unaccent('(^|[[:punct:]]|[[:space:]]|(?=[[:punct:]]|[[:space:]]))6312d172-f0cf-40f6-b27d-9fa8feaf332f($|[[:punct:]]|[[:space:]]|(?<=[[:punct:]]|[[:space:]]))')) ORDER BY lower(f_unaccent(instance.jsonb->>'title')) LIMIT 10 OFFSET 0
As UI inventory uses CQL queries like the below, the view cannot be simply removed in order to benefit from CQLPG-58 and instead an alternative is needed. RMB-305 might provide part of that, or this work might need something similar to the proposal in MODINVSTOR-185
((title="*" or contributors adj "\"name\": \"*\"" or identifiers adj "\"value\": \"*\"")) and holdingsRecords.permanentLocationId="fcd64ce1-6995-48f0-840e-89ffa2288371" sortby title
TestRail: Results
Attachments
Issue Links
- blocks
-
MODINVSTOR-238 Performance: GET 200 - instance-storage by ID from POST above
-
- Closed
-
- duplicates
-
MODINVSTOR-181 Tune primary ID indexes
-
- Closed
-
- relates to
-
MODINVSTOR-185 Analyze filtering by location
-
- Closed
-
-
MODINVSTOR-248 filtering /item-storage/items when used with 'query=id=XXX' is too slow
-
- Closed
-
-
MODINVSTOR-255 GET 200 - instance-storage by source: query=source=abc takes 360 s
-
- Closed
-
-
MODINVSTOR-256 Improve performance of /instance-storage/instances?query=holdingsRecords.permanentLocationId=abc*
-
- Closed
-
-
FOLIO-1771 clean up and isolate tests
-
- Closed
-
-
MODINVSTOR-247 filtering /item-storage/items by 'query=barcode==123' does not perform
-
- Closed
-