Skip to content

shortcut metadata_condition if there is none - #12835

Merged
KevinHuSh merged 1 commit into
infiniflow:mainfrom
panzi:feature/skip_metadata_conditions_if_possible
Jan 27, 2026
Merged

KevinHuSh merged 1 commit into
infiniflow:mainfrom
panzi:feature/skip_metadata_conditions_if_possible

Conversation

@panzi

@panzi panzi commented Jan 26, 2026 •

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

If no metadata_condition parameter is given then don't load the metadata of all documents into memory. Instead just pass doc_ids as None to the retrieval() method, which means to use all documents of the given datasets.

This is relevant if you have a lot of documents!

Type of change

  • Performance Improvement

@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. 🐖api The modified files are located under directory 'api/apps/sdk' labels Jan 26, 2026
@KevinHuSh KevinHuSh added the ci Continue Integration label Jan 27, 2026
@KevinHuSh
KevinHuSh marked this pull request as draft January 27, 2026 01:47
@KevinHuSh
KevinHuSh marked this pull request as ready for review January 27, 2026 01:47
@KevinHuSh
KevinHuSh merged commit b36d974 into infiniflow:main Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐖api The modified files are located under directory 'api/apps/sdk' ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants