You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that we only need to get the total n. of results, and that this task runs quite often for ALL collections, I would suggest using the `count` APIs of OpenSearch rather than a classic search, as it is more performant.
You might want to keep the search_records method in the service, and add a second one count_records.
The text was updated successfully, but these errors were encountered:
alejandromumo
changed the title
Collections: compute number of records using "count" API instead of "search"
collections: compute number of records using "count" API instead of "search"
Oct 31, 2024
You might want to keep the
search_records
method in the service, and add a second onecount_records
.Originally posted by @ntarocco in #1853 (comment)
The text was updated successfully, but these errors were encountered: