Closed Larkooo closed 1 month ago
Ohayo, sensei! The recent changes enhance the DojoWorld
implementation by incorporating parallel processing for database queries and entity mapping. The code now employs the Rayon library to parallelize the mapping of database rows to entities, improving performance with large datasets. Key updates include grouping entities by model IDs for efficient querying and utilizing batch processing with SQL IN
clauses, significantly reducing database calls.
File Path | Change Summary |
---|---|
crates/torii/grpc/src/server/mod.rs | Introduced parallel processing for database queries and entity mapping using Rayon. Grouped entities by model IDs for efficient querying and refactored row mapping to leverage parallel iteration. Modified functions to accept parameters for table names and relation columns. |
crates/torii/grpc/Cargo.toml | Added itertools.workspace = true to include the itertools crate in the workspace, enhancing data handling capabilities. |
DojoWorld
, which is relevant to the main PR's modifications in SQL query construction and entity retrieval.Attention: Patch coverage is 49.01961%
with 78 lines
in your changes missing coverage. Please review.
Project coverage is 68.38%. Comparing base (
7c5a1f5
) to head (51c654b
). Report is 2 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
crates/torii/grpc/src/server/mod.rs | 49.01% | 78 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit
New Features
itertools
library for enhanced collection manipulation capabilities.Bug Fixes