Approaches to generate auto-incrementing numeric ids in CouchDB
问题 Since CouchDB does not have support for SQL alike AUTO_INCREMENT what would be your approach to generate sequential unique numeric ids for your documents? I am using numeric ids for: User-friendly IDs (e.g. TASK-123, RQ-001, etc.) Integration with libraries/systems that require numeric primary key I am aware of the problems with replication, etc. That's why I am interested in how people try to overcome this issue. 回答1: As Dominic Barnes says, auto-increment integers are not scalable, not