Skip to content

Commit

Permalink
Disable facets from API returns.
Browse files Browse the repository at this point in the history
OAI-PMH doesn't need any of the facet aggregations so we can disable them.
This is being done in aim to improve performance.
  • Loading branch information
richardhallett committed Feb 1, 2021
1 parent 485ecd4 commit cc2ae91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions viringo/services/datacite.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ def api_get_paging_with_url(url, params):
def api_call_get(url, params=None):
"""Make authenticated get request to API with params"""

params['disable-facets'] = True

payload_str = ''
if params:
# Construct the payload as a string
Expand Down

0 comments on commit cc2ae91

Please sign in to comment.