filmov
tv
Speed up your database inserts with Django ORM's bulk_create()
![preview_player](https://i.ytimg.com/vi/fyhqI-_qjek/maxresdefault.jpg)
Показать описание
In this short video I show you a 36X speed up of inserting one million+ rows into a database using Django's ORM.
Docs: "This method inserts the provided list of objects into the database in an efficient manner (generally only 1 query, no matter how many objects there are), and returns created objects as a list, in the same order as provided."
By the way, since Django 4.1 there is also an asynchronous version of this - abulk_create() - but I could not just "plug that in" without getting a "coroutine ... was never awaited" warning, nor am I fully up2speed yet with Django's new async capabilities (link below), hence to be continued ...
Links:
Stay tuned for another video about the N+1 query performance problem in Django and how to fix it.
---
And last but not least, we appreciate any feedback to make our YouTube content better 💡
Docs: "This method inserts the provided list of objects into the database in an efficient manner (generally only 1 query, no matter how many objects there are), and returns created objects as a list, in the same order as provided."
By the way, since Django 4.1 there is also an asynchronous version of this - abulk_create() - but I could not just "plug that in" without getting a "coroutine ... was never awaited" warning, nor am I fully up2speed yet with Django's new async capabilities (link below), hence to be continued ...
Links:
Stay tuned for another video about the N+1 query performance problem in Django and how to fix it.
---
And last but not least, we appreciate any feedback to make our YouTube content better 💡
Speed up your database inserts with Django ORM's bulk_create()
How to Make Inserts, Updates, and Deletes Faster: Databases for Developers: Performance #8
SQL indexing best practices | How to make your database FASTER!
Speed up MySQL 25-100x with Indexing
Secret To Optimizing SQL Queries - Understand The SQL Execution Order
Faster Inserts!
5 Secrets for making PostgreSQL run BLAZING FAST. How to improve database performance.
SQL Query Optimization - Tips for More Efficient Queries
High-Performance Web Applications with VeloxDB with Ivan Savu
One Tip for 1000x Faster MySQL Inserts
Massively Speed-Up SQL Queries with Indexes
Databases: Speed up INSERT procedure
One step to DOUBLE the Speed for your Queries? - Its Bulk Insertion in Entity Framework Core
This INCREDIBLE trick will speed up your data processes.
How can I speed up a query if an index cannot help?
How Smoothly Insert Millions of Rows in SQL Server?
PYTHON : How to speed up bulk insert to MS SQL Server using pyodbc
Speed Up Query Execution with Amazon Redshift Materialized Views
Inserting 1 BILLION rows to a Timescale Database 💀 #ad #programming #software #technology #code
Five Tips You can Use To Speed Up Your Stored Procedures | Essential SQL
SQL Server 2019 querying 1 trillion rows in 100 seconds
Bulk Inserts with PostgreSQL: Four+ Methods for Efficient Data Loading
The best way to connect to a SharePoint Folder to speed up your Excel and Power BI data refresh
SQL Multi Insert Speed Test Comparison
Комментарии