Comments (2)
I can reproduce and will get back to you once I know what's the issue.
from objectbox-go.
The issue was with the query finalizer sometimes being executed before the native (CGO) query call finished. It's fixed in v1.1.2, please upgrade.
Also, I've noticed mutex/locks and explicit transactions in your code - it's not necessary in your case - box and query APIs manage their transactions internally when needed. Having said that, it still makes sense to do explicit transactions, e.g. to improve performance or to maintain consistency among multiple DB operations, it just wasn't the case with your code. See https://golang.objectbox.io/transactions#explicit-transactions for more details.
from objectbox-go.
Related Issues (20)
- Query: OR condition HOT 2
- Build fails on CentOS 7 due to gcc not running c99 mode HOT 1
- Following GETTING STARTED guide does not work HOT 4
- Self-assigned IDs HOT 3
- Maybe fix this ? HOT 3
- Encryption & static linking HOT 2
- Support sync-server
- Support "Flex" type
- Support "unique: replace on conflict"
- Installation fails under WSL2 HOT 2
- Repo is down - 502 Bad Gateway error HOT 3
- Cgo compile error with gcc on Windows 10 Pro: " undefined reference to `obx_txn_mark_success" HOT 6
- New Repo Creation [Objectbox-Rust] HOT 11
- Upgrade dependency "github.com/google/flatbuffers"
- Ignore some structs for code generation
- How to statically compile in golang so library is included?
- Version.LessThan() function not working properly
- Time property in inlined struct
- dyld Symbol not found: _obx_async on latest xcode, macos, and golang HOT 1
- Performance Benchmarks page has broken images HOT 1
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 objectbox-go.