project-lux / lux-middletier

Node backend for LUX frontend (a.k.a. middle tier)
Apache License 2.0
2 stars 0 forks source link

Remove duplicates in estimate requests for HAL links (from 50) #4

Open gigamorph opened 6 months ago

gigamorph commented 6 months ago

Problem Description

Middle tier uses the backend's searchWillMatch endpoint to decide whether to include a HAL link in the document. If the estimated number of results is 0, the HAL link that corresponds to the search will be omitted.

The searchWillMatch query is a combined query that contains multiple queries, and currently often contains duplicates which will affect the performance.

It won't be a simple task because of the way the queries are shared (between estimations and real searches), combined, and separated.

Requirements

Remove the duplicates.

roamye commented 3 months ago

Old ticket ( https://git.yale.edu/lux-its/lux-backend/issues/50 ) does not show any further comments/information than what is in this ticket.

roamye commented 3 months ago

@gigamorph -

What is needed for this to be promoted to prioritization review? (besides formatting the issue)

roamye commented 2 months ago

tix forming mtg 6/17 will require significant refactoring and UAT is in the middle-tier. Ticket is still valid.