title: Approaches to generate auto-incrementing numeric ids in CouchDB
body: <p>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?</p>
  
  <p>I am using numeric ids for:</p>
  
  <ul>
  <li>User-friendly IDs (e.g. TASK-123, RQ-001, etc.)</li>
  <li>Integration with libraries/systems that require numeric primary key</li>
  </ul>
  
  <p>I am aware of the problems with replication, etc. That's why I am interested in how people try to overcome this issue.</p>