🚀 Upcoming Feature: True Multi-Writer Transactions in CSharpDB #23
MaxAkbar
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I’m excited to share what’s coming next for CSharpDB — a major architectural upgrade:
True Concurrent Multi-Writer Transactions
Today, CSharpDB supports:
However, explicit multi-statement write transactions are still effectively single-writer.
That’s about to change.
🔥 What’s Coming
We’re introducing support for:
This means multiple writers will be able to:
🧠 High-Level Design
The implementation will roll out in phases.
Phase 1 (Initial Release)
👉 Each transaction works on its own private page copies and only validates at commit time.
Phase 2 (Advanced Concurrency)
⚙️ Why This Approach?
CSharpDB is built around:
So instead of adding heavy locking, we’re going with:
👉 Optimistic Concurrency Control (OCC)
This keeps:
📊 What This Unlocks
True parallel write workloads
Better throughput on multi-core systems
Real-world transactional patterns (not just single statements)
Foundation for future features like:
These are expected tradeoffs for OCC systems and will be improved over time.
💬 Feedback Wanted
I’d love input on:
🙌 Final Thoughts
--
This is still an evolving design, and details may change as we move forward. I’ll keep everyone updated along the way and share the final implementation once it’s ready.
Appreciate all feedback, ideas, and challenges — especially from people who’ve worked on storage engines or high-concurrency systems.
Let’s build something powerful 🚀
Beta Was this translation helpful? Give feedback.
All reactions