Comments (6)
When https://bugzilla.mozilla.org/show_bug.cgi?id=1193394 will land in Firefox, it will be possible to have IndexedDB transactions across promises in Chrome+Firefox.
from kinto.js.
Not sure if this is relevant here, but just wanted to mention how important batching together writes to IndexedDB is, for performance. This is also a topic in localForage, we are trying to do automatic batching of writes there. The basic principle of that is:
- you add or update one record -> it starts updating IndexedDB
- you add or update more records -> it queues them up until IndexedDB is idle
- the first transaction completes -> it creates a new batch transaction from everything that was added to the queue in the meantime
from kinto.js.
After a quick discussion with @ametaireau, here's the current state of our thinking on this:
- Having transactions would provide a neat way to cancel local persistence operations;
- It would also improve performances on large batches of persistence operations;
- localStorage adapter would need a specific manually implemented solution to cover all the use cases;
- We should heavily challenge if we actually need this feature: for now, nobody has explicitly expressed a need for it;
- We should also discuss this with @leplatrem which I remember was having opinions on the matter.
Thoughts?
from kinto.js.
#303 has now landed and is a huge step towards this goal.
from kinto.js.
That's it! It landed!
Firefox 60 supports promises within IndexedDB transactions \o/
There is a lot of things that could be simplified, quite a huge amount of work.
from kinto.js.
Wow! :)
from kinto.js.
Related Issues (20)
- Progress for attachments uploading HOT 1
- Export important types from `index.ts`
- Document reasons to have polyfills
- Collection.addAttachment should match other methods accepting record
- Run browser tests on Linux
- Remove `http-server` dependency
- Remove `http-server` dependency HOT 1
- Suggested data modelling approach HOT 3
- Properly annotate caught errors as `unknown`
- Upgrade deps to keep this and kinto-http.js in sync
- Look into removing the `Upgrade Google Chrome` action HOT 2
- Document how to use custom endpoints
- Add groups to users automatically via Oauth HOT 2
- RFC: Merge `kinto-http` into `kinto` HOT 2
- is it currently being maintained? HOT 1
- kinto-http documentation is not loading HOT 1
- err TypeError: Cannot read properties of undefined (reading 'bind') HOT 8
- Kinto is not a constructor
- Add tests to cover http/collection.getSnapshot
- Replace current testing library, intern appears to be abandoned HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kinto.js.