Skip to content

Torondor27/in-memory-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

in-memory-db

The storage for the in-memory database is a simple map, chosen for its speed and simplicity in managing key-value storage.

For the transaction implementation, I've opted to store transactions as a stack containing operation stacks. This method simplifies handling nested transactions - retrieving the last transaction becomes straightforward. Each transaction is represented as a stack containing all the operations performed within it. Consequently, when it comes to committing, everything is already completed, and we simply remove the transaction from the stack. Regarding rollback, we get all operations from the operation stack and perform the opposite (delete - create, update - update back to old value).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages