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

fix: use persistent es client and batch bulk requests #122

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

piket
Copy link
Collaborator

@piket piket commented Jul 29, 2024

What this PR does / why we need it:

Use a persistent client instead of recreating the connect for each request

Fixes

online_store_config = config.online_store
assert isinstance(online_store_config, ElasticsearchOnlineStoreConfig)

user = online_store_config.username if online_store_config.username is not None else ""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can the default values be set in ElasticsearchOnlineStoreConfig instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for null safety checks. The config validation is supposed to enforce those values to not be None.

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