DEV Community

Cover image for TypeOrm Unit Of Work
sebk69
sebk69

Posted on

TypeOrm Unit Of Work

Small TypeOrm Persist Thread implement unit of work like a lot of modern ORMs for type-orm.

Benefits :

  • It optimize the persist flow by grouping orders in single request resulting in less db load and faster response
  • You can use multi connections persist if your persist is not a transaction
  • It push you orders in a persist stack that you can flush in one time then even with no transation if your process fail it result as no db actions in result of no db load at all

Use it for your projects with heavy write operations.

git : https://git.small-project.dev/npm-libs/small-typeorm-persist-thread
npm : npm install small-typeorm-persist-thread

Top comments (0)