Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Batch queue tasks? #1284

Open
amithkk opened this issue Jan 11, 2025 · 1 comment
Open

Batch queue tasks? #1284

amithkk opened this issue Jan 11, 2025 · 1 comment
Labels
Issue appropriate for: newcomers 🤩 This issue can be safely tackled by people who never worked in this project before Issue contains: Some Python 🐍 This issue involves writing some Python code Issue contains: Some SQL 🐘 This features require changing the SQL model

Comments

@amithkk
Copy link

amithkk commented Jan 11, 2025

Could there be a way to queue a set of tasks at once rather than sequentially calling defer or defer_async (which perform INSERTs one at a time - ends up being quite slow)

It could look like

taskname.defer_batch_async([{"arg1":"val1"},{"arg2":"val2"}])
@ewjoachim ewjoachim added Issue appropriate for: newcomers 🤩 This issue can be safely tackled by people who never worked in this project before Issue contains: Some SQL 🐘 This features require changing the SQL model Issue type: Feature ⭐️ Issue contains: Some Python 🐍 This issue involves writing some Python code labels Jan 11, 2025
@ewjoachim
Copy link
Member

That would make sense to build.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Issue appropriate for: newcomers 🤩 This issue can be safely tackled by people who never worked in this project before Issue contains: Some Python 🐍 This issue involves writing some Python code Issue contains: Some SQL 🐘 This features require changing the SQL model
Projects
None yet
Development

No branches or pull requests

2 participants