KorAP / Kustvakt

:speedboat: User and policy management component for KorAP, capable of rewriting queries for policy based document restrictions.
BSD 2-Clause "Simplified" License
4 stars 3 forks source link

Searching time API requests vs. via Kalamar #577

Open margaretha opened 1 year ago

margaretha commented 1 year ago

@notesjor reported that direct API requests sometimes takes much longer for searching that query via Kalamar. Could you please posted an example? I cannot find any big time differences.

margaretha commented 3 months ago

Kalamar stores "the number of results" thus perform search with option "cutoff=true" that improves the searching time. See https://github.com/KorAP/Kustvakt/wiki/Service:-Search-GET

We have implemented a cache for this in Kustvakt as well. See https://github.com/KorAP/Kustvakt/commit/5a5b9958126fede1c20d7645eac23a27c8ff8a88

notesjor commented 3 months ago

Dear Eliza, thank you very much - I'll take a look at it next week.