Skip to content

Perf: Optimize Vote initialization using bulk_save_objects (#518)#522

Open
ayushshukla1807 wants to merge 1 commit intohatnote:masterfrom
ayushshukla1807:perf/518-bulk-save-objects
Open

Perf: Optimize Vote initialization using bulk_save_objects (#518)#522
ayushshukla1807 wants to merge 1 commit intohatnote:masterfrom
ayushshukla1807:perf/518-bulk-save-objects

Conversation

@ayushshukla1807
Copy link
Copy Markdown

Closes #518 by replacing the iterative Session.mapped ORM assignments with direct ID-based allocations and bulk_save_objects. This bypasses SQLAlchemy's massive global relationship mapping overhead completely when rendering tasks for high-capacity campaigns (e.g. 100k+ entries).

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.

Performance: bulk_save_objects should replace iterative session setup for Vote generation

1 participant