Mathieu Leplatre
Mathieu Leplatre
**Use case**: I have 57 records to create. **Idea**: I put them in a JSON file, as a list of records. I go to the `Bulk Add` form, click `Browse`,...
In the Python client, operations are safe by default. Here, it is safe is false by default. We should align both projects regarding this :/
Apparently possible via options in `updateRecord()`
* `setData()` returns `{data: {attr: 1}, permissions: {...}}` * `getData()` returns `{attr: 1}`
Users wondering if this is the correct way: ```js const client = new KintoClient(process.env.VUE_APP_API_URL) const token = localStorage.getItem('token') ?? null if (token) { client.setHeaders({ Authorization: `JWT ${token}` }) } ......
```js const subset = await collection.list({ filters: { "person.age": 23 } }) ``` :)
Iterating on list in order to perform massive IndexedDB insertions is not efficient. We should chain insertions instead for the browser to schedule the insertions better.
As suggested by Andrew in https://bugzilla.mozilla.org/show_bug.cgi?id=1486980#c36 Example pseudocode: ```js objectStore.createIndex("app_indices", "appIndices", { multiEntry: true }); function fancyPut(idbDataStore, collectionName, collectionIndicesMap, appObj) { const appIndices = collectionIndicies.map([indexName, indexEvalPath]) => { // for...
If `count` is > 0 then we can stop iterating on the store once we've found `count` results. This would optimize use cases with huge collections when only a limited...
Fixes #557 I'm not sure we want this, but since it was trivial to implement here it is. Please close if that's a change we don't want.