[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Transaction commit speed
- To: Openldap Technical <openldap-technical@openldap.org>
- Subject: Transaction commit speed
- From: Sam Dave <samdave@tuta.io>
- Date: Mon, 12 Aug 2019 07:16:44 +0200 (CEST)
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1565587004; s=s1; d=tuta.io; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type; bh=1cEBd31IvPyzDqW7Uq9ibcy+AKpOT3cmcBa+VnTmX14=; b=ERXLDBvtJPevY/MpdBI98AaG9g53YjLSo7UXGLUkyPknrOiwBpOT3KUxykcD3PdH TlWiRq+oa4gm/oU/BPFXspZ9lodXVUzCsJzgAaGDQd4/eSwJJpfEoZqsbaBOB5yqcyD Z2xv20ePYRlvWi/mYoqLxUYbsnUsgfUMvJFZe+IvFkrha3hi4S4BMkqAGVxq0Z/yN7c IIqutd1i2/I/eEqjesYPNbCcZBeieX/pLTQo4fXYwG1V30JTs7Jfn0aByUKYgxq4PUH AsaxtKt3F24TtsL5wCQmtLuGZZCoY+4CxlJFnTEB8e466kVnBqHZK8DKk0s0zmSMoBl 2l339LL4NA==
Hi,
Are transaction commits always fast (almost instantaneous) operations compared to the read or write operations within it? Is it possible for say an mdb_cursor_get or mdb_put to be faster than a subsequent mdb_txn_commit, and if so under what circumstances can that happen?
This is relevant info for UI applications showing a progress indicator. If an mdb_txn_commit is always fast, we can rely on the _get/_put count to calculate the percentage.
Thanks,
Sam