Minimize DB-Wrtiting-Activities by "flush" Methods
Author: chris576Created Sep 1, 2026Updated Sep 7, 2026
Feature Description
In Hibernate and Doctrine you can activly flush the DB. I would like to minimize the DB Write actions in some modules, by activly flush or not flush to the db.
The Solution
I would like to be able to hold Entities in the RAM until I want to flush them to minimize the writes to the SSD on our RasperryPI-Devices.
Considered Alternatives
I think the origin strategy should be provided in future releases as well. It may be possible to provide this kind of strategy on some special Kind of Entity/Repository.
Additional Context
No response
Relevant Database Driver(s)
- aurora-mysql
- aurora-postgres
- better-sqlite3
- capacitor
- cockroachdb
- cordova
- expo
- mongodb
- mysql
- nativescript
- oracle
- postgres
- react-native
- sap
- spanner
- sqlite
- sqljs
- sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
Yes, I have the time, but I don't know how to start. I would need guidance.
Source: typeorm/typeorm