haydnv / tinychain

A next-gen database + SaaS framework for rapid development and integration of enterprise services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TxnServer acquires a workspace write lock unnecessarily on most requests

haydnv opened this issue · comments

Currently, tc_fs::txn::TxnServer::new_txn creates a new directory for every new transaction, but most transactions don't require or use a workspace directory. The workspace directory in Txn should be updated to use lazy loading in order to avoid write-locking the global workspace directory on every request.