On Tue, Oct 24, 2017 at 01:43:21PM +0200, Ondřej Kuzník wrote:
ITS#8486 suggests we use a more efficient structure to maintain the sessionlog in. If we're messing with sessionlog already, we might as well see if we can address another issue - it is always empty on slapd startup leading to unnecessary full refreshes happening.
slapo-accesslog has most of the data we need to support that and is already sorted in CSN order (much like sessionlog).
AFAIK, we can't use the accesslog database directly as the database as we can't efficiently search on a single serverID to get the serverID set and the oldest CSN for each.
There are a few tasks that need to be done in order to achieve this: [...]
- update accesslog to log entryUUID for the entry that has just been written
[...]
Ah, slapo-accesslog already seems to do this, however it is not documented yet.