Skip to content
This repository has been archived by the owner on Jan 28, 2019. It is now read-only.

Implement Couchdb / Pouchdb backend #28

Open
orolle opened this issue Jun 5, 2018 · 0 comments
Open

Implement Couchdb / Pouchdb backend #28

orolle opened this issue Jun 5, 2018 · 0 comments

Comments

@orolle
Copy link

orolle commented Jun 5, 2018

Hi Reid,
saw your recent talk (https://www.youtube.com/watch?v=U4ckAGtv_OI) and it inspired me!

Couchdb is a json document database written in erlang and got ported to javascript (Pouchdb). Couchdb is built on top of an immutable data structure, is able to synchronize databases und allows to listen for live database changes. Its weak spot is its weak query-ability (no joins available) where datalog excells at.

I want to research: First that a couchdb database instance is referable via its unique URL which can be used as a namespace and allow queries across databases. Secondly couchdb provides a sequence id index ("_seq"; transactions in time order) to query data across time.

  1. Translate a query plan to a set of Couchdb Mango queries.
  2. Execute Mango queries (asynchronously in browser-land) and stream results for lazy processing
  3. Use shelvings query processing logic to merge mango results to generate final result
@orolle orolle changed the title Implement Couchdb / Pouchdb backebd Implement Couchdb / Pouchdb backend Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant