Comments (3)
The documentation can be more explicit about this.
#Accepted
from kv.
Document is pretty unclear about that atleast in BeginTranscation. It also doesn't any test and documentation reads it's safe to use in concurrent environment.
After looking at the code I can't see how it's possible for multiple goroutines in example a web service to work without using mutex locking before BeginTransaction and unlocking after commit or rollback.
Or am I missing something here?
from kv.
I have the same doubt, I see the source that there is no way to guarantee different transaction serializable writing. Maybe user must use a lock outer?
from kv.
Related Issues (20)
- Switch to camlistore/lock HOT 3
- kv.Create fails on windows HOT 2
- PutIfAbsent ? HOT 2
- data race in Close HOT 6
- signal handling HOT 7
- High memory usage when Enumerating HOT 10
- Add seek to last with key prefix HOT 1
- Question: If the DB file is closed, why is the WAL file still needed? HOT 4
- godoc.org link no longer works HOT 7
- simple rollback doesn't seem to roll back transaction HOT 3
- DB.Delete seems to be unnecessary HOT 3
- Enumerator could be more convenient to use HOT 2
- Seek misfunctions after inserting specific key sequence HOT 2
- How to tell missing record from empty one? HOT 2
- Any benchmark? HOT 2
- Expose lldb.Filer for advanced usage HOT 5
- Index out of range HOT 13
- kvaudit test panics HOT 1
- performance issue or wrong benchmark? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kv.