After adding a document to a writable db, I use get_lastdocid to get the id of the last document added. If I have several threads accessing the db through different db connections, how can I now that this is the correct ID I get, and not the one which was added through another connection ? Best regards IB