Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refresh on interval function refreshes index_info if enough time has … #333

Merged
merged 4 commits into from
Feb 20, 2023

Conversation

pandu-k
Copy link
Collaborator

@pandu-k pandu-k commented Feb 17, 2023

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Optimisation

  • What is the current behavior? (You can also link to an open issue here)
    The index_info cache is refreshed on every search() call. This leads to 2 Marqo-OS requests for every search request.

  • What is the new behavior (if this is a feature change)?
    The index_info cache is refreshed for a search() call only if the refresh interval time has elapsed since the previous index_info refresh.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No

  • Have unit tests been run against this PR? (Has there also been any additional testing?)
    In progress:

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)

@pandu-k pandu-k temporarily deployed to marqo-test-suite February 17, 2023 04:07 — with GitHub Actions Inactive
@pandu-k pandu-k temporarily deployed to marqo-test-suite February 17, 2023 13:52 — with GitHub Actions Inactive
@pandu-k pandu-k temporarily deployed to marqo-test-suite February 17, 2023 13:53 — with GitHub Actions Inactive
@pandu-k pandu-k marked this pull request as ready for review February 17, 2023 13:57
@pandu-k pandu-k merged commit d916ab3 into mainline Feb 20, 2023
@pandu-k pandu-k deleted the reduced_mappings_calls branch February 20, 2023 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants