Kong / Kong/lua-resty-lmdb

Why op batching?

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C
Stars
33
Forks
8
Avg merge
8d 1h
Merged PRs (30d)
1

Description

I want to read a key, then update conditional on the value in a single transaction.

Is there a performance or concurrency reason why the txn ops are batched together in `ngx_lua_resty_mdbx_ffi_execute`? Otherwise, I will modify each op to use a separate ffi call, so I can read before commit.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `ngx_lua_resty_mdbx_ffi_execute` entry point and read how transaction operations are batched. Trace whether a read followed by a conditional update can remain in one transaction, then review the issue's proposed separate FFI calls. Done means the batching rationale and an agreed approach for read-before-commit behavior are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, lua
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.