News for hackers. Stuff that matters.
Re:Inserting a billion rows in SQLite under a minute by sharken on Monday July 19, 2021 @04:40AM (#27880412)
For relational databases in the enterprise with large amounts of data, batched inserts work great.

For large deletes it is often better to move the rows that won't be deleted to a new table and rename the table when done.

With large updates it is important to look at the query plan and optimize it with good indexes. Batching also works well in this scenario.

There are no comments on this comment yet.