We’re migrating an application to .net core(3.1) and the existing data of the application would be migrated to Couchbase(SDK .Net 2.7, server 6.0.4).
Let’s consider there are 5000 records that need to be migrated to Couchbase with the last record having a recordId “5000”.
We want to be able to use this number and auto-increment it by one when a new record is added after the migration is done, i.e. the first record added after the migration, should have a recordId “5001”, the next should have “5002”.
We’re using the bucket.Increment method to achieve this, however, it returns value “1” by default on first Increment, even when there are migrated records with a recordId value greater than zero.
Is there a way to achieve this?