adriantanasa / connect-cloudant-store

NodeJS express-session storage connector for IBM Cloudant
MIT License
14 stars 6 forks source link

reason:"Document update conflict." statusCode:409 #5

Closed djinete closed 5 years ago

djinete commented 5 years ago

Hi Adrian, when we use the store , this way var store = new CloudantStore( { database: dbconfig.dbCredentials.sessionName, dbRemoveExpMax: 100, disableTTLRefresh: true, url: dbconfig.dbCredentials.url, } ); Obtain the follow error reason:"Document update conflict." statusCode:409, Seems like the option disableTTLRefresh: true, its not working , Any ideas? I really need your help Thank's a lot.

tortilaman commented 5 years ago

Also encountering this issue.

adriantanasa commented 5 years ago

@djinete I don't think you have an option to completely remove the document conflicts while using the session store with Cloudant, especially if you have multiple instances running for same application. disableTTLRefresh will reduce the amount of conflicts, but is not removing them completely.