Skip to content

Delegate bulk create/update to ryx_core#44

Merged
Einswilli merged 15 commits intoAllDotPy:masterfrom
Einswilli:new_design
Apr 10, 2026
Merged

Delegate bulk create/update to ryx_core#44
Einswilli merged 15 commits intoAllDotPy:masterfrom
Einswilli:new_design

Conversation

@Einswilli
Copy link
Copy Markdown
Contributor

Switch bulk operations to use the ryx_core Rust bindings: import ryx_core in bulk.py and call _core.bulk_insert in bulk_create (sending rows, requesting returning IDs) and _core.bulk_update in bulk_update (passing table, pk column, per-column values and pk list). Remove Python-side SQL generation and execution for updates, simplify value collection and PK assignment logic (handle DB-specific return formats). Also tidy imports and avoid name shadowing in Manager.bulk_update by aliasing the imported function, and tighten QuerySet.init model typing to Model. These changes move heavy lifting to native code for performance and lower FFI overhead.

Switch bulk operations to use the ryx_core Rust bindings: import ryx_core in bulk.py and call _core.bulk_insert in bulk_create (sending rows, requesting returning IDs) and _core.bulk_update in bulk_update (passing table, pk column, per-column values and pk list). Remove Python-side SQL generation and execution for updates, simplify value collection and PK assignment logic (handle DB-specific return formats). Also tidy imports and avoid name shadowing in Manager.bulk_update by aliasing the imported function, and tighten QuerySet.__init__ model typing to Model. These changes move heavy lifting to native code for performance and lower FFI overhead.
@Einswilli Einswilli merged commit 4ace621 into AllDotPy:master Apr 10, 2026
3 of 4 checks passed
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.

1 participant