Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What about polyfills? #2

Closed
aMarCruz opened this issue May 9, 2015 · 6 comments
Closed

What about polyfills? #2

aMarCruz opened this issue May 9, 2015 · 6 comments

Comments

@aMarCruz
Copy link

aMarCruz commented May 9, 2015

Hi @paldepind, your work is very good.
Have you checked your library with any polyfill?

In a commercial app, I'm using mozilla localForage, an localStorage/IndexedDB/Webkit abstraction, very limited but lightweight and confiable.

@paldepind
Copy link
Owner

Hi. Thank you :)

I have not tried using SyncedDB with polyfills. I'm using it an Cordova app myself where IndexedDB is supported. SyncedDB does deliberately not use any exotic features of IndexedDB so polyfilling should be possible.

localForage is not bad. If localStorage + async is all one needs then it's great. But for anything but the most basic client site storage it falls short.

@aMarCruz
Copy link
Author

aMarCruz commented May 9, 2015

@paldepind thanks.
For now localForage is fine for me. I'm think on using Pusher, but the code in pusher-js is mustly inefficient, I'll try your library.

@piglovesyou
Copy link
Collaborator

piglovesyou commented Apr 17, 2016

As @paldepind said if there is a standard and fast wrapper library of IndexedDB accessing, we can choose it. But I'm not sure we should support localStorage (slow, no indexing) or WebSQL (obsolete) here. What do you think?

@piglovesyou
Copy link
Collaborator

Okay let's say we don't support LocalStorage an WebSQL. Reasons: LocalStorage must very slow as a DB use (JSON.parse, JSON.stringify... and not any indexing). And I believe W3C abandoned WebSQL and recommends IndexedDB.

@aMarCruz
Copy link
Author

aMarCruz commented Sep 6, 2016

@piglovesyou sorry, I was lost in a world of messages :) and this was curiosity only.
Thanks for you time.

@paldepind
Copy link
Owner

Okay let's say we don't support LocalStorage an WebSQL. Reasons: LocalStorage must very slow as a DB use (JSON.parse, JSON.stringify... and not any indexing). And I believe W3C abandoned WebSQL and recommends IndexedDB.

I agree. IndexedDB is the most powerful client site database. Thus polyfilling it with weaker solutions will probably have limitations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants