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

Batch import doesn't apply rate limit when using async indexing #1542

Open
rlmanrique opened this issue Feb 6, 2025 · 0 comments
Open

Batch import doesn't apply rate limit when using async indexing #1542

rlmanrique opened this issue Feb 6, 2025 · 0 comments

Comments

@rlmanrique
Copy link
Contributor

Using the Python client in its version 4.10.4

The function rate_limit is not working if Weaviate is configured in async indexing mode:

    with open(dataset_path, "r") as f:
        collection.batch.rate_limit(100)
        with collection.batch.dynamic() as batch:
            for raw_json_email in f:
                email = json.loads(raw_json_email)
                batch.add_object(
                    properties=email["data"],
                    uuid=email["id"],
                )

The batches have 1000 objects, no mater the rate configured.

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

No branches or pull requests

1 participant