Meteor-Community-Packages / Meteor-Community-Packages/ground-db

Is is possible to use something like PouchDB as the storage layer

Open
#90 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
JavaScript
Stars
569
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Hi,
I am looking for an offline app solution for both desktop and mobile, and it seems GroundMeteor is the best choice. But I am really concerned with the localStorage's 5MB quota, because I am going to store something larger than 5MB. On the other side, I tried another database named PouchDB(http://pouchdb.com/), it works great.
As it advertised:
_PouchDB supports all modern browsers, using IndexedDB under the hood and falling back to WebSQL where IndexedDB isn't supported._

I can also use PouchDB with SQLite plugin for cordova, then there will be "no" size limitation. Besides that, there is a plugin for PouchDB named Crypto Pouch which I can used for encrypting the database.

So I am thinking whether we can make a wrapper to make PouchDB act as a localStorage, and then we can get rid of the size quota issue. Or maybe there are other solution to solve it?

Any idea? thanks in advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files, tests, or entry points are named. Start by reviewing how GroundDB currently uses localStorage, then compare the proposed PouchDB wrapper with IndexedDB, WebSQL, the Cordova SQLite plugin, and Crypto Pouch. Done would require an agreed storage-layer design and a defined way to remove the quota limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.