(adaptive)
| 49 | } |
| 50 | |
| 51 | function createDatabaseIndexed(adaptive) { |
| 52 | db = new loki('binary index perf'); |
| 53 | |
| 54 | samplecoll = db.addCollection('samplecoll', { |
| 55 | adaptiveBinaryIndices: (adaptive === true), |
| 56 | indices: ['customId'] |
| 57 | }); |
| 58 | } |
| 59 | |
| 60 | // scenario for many individual, consecutive inserts |
| 61 | function initializeDatabase(silent, docCount) { |