What's the supported Queries?

29 views
Skip to first unread message

Minghao Liu

unread,
Feb 7, 2018, 4:19:07 AM2/7/18
to ShareJS
Hi,

It seems ShareDB support live-queries and that's super nice! The query change seems to be handled by applying diffs (changes, operations) of the main document to the previous query results. 

Then comes the question, what kind of query is supported? I have implemented similar live query systems before. and I found it really hard to implement anything other than simple (Filter, Sort) queries. So for example, joins is not supported, where as joins is supported on traditional SQL systems.

So is there a defined set of queries that can be performed? Is it hard to expand the current method to other kind of queries? 

Curran Kelleher

unread,
Mar 16, 2018, 5:04:57 PM3/16/18
to ShareJS
I'm pretty sure it depends on the database driver you're using.

If you're using sharedb-mongo, this page here explains what sorts of queries are supported https://github.com/share/sharedb-mongo#queries
Reply all
Reply to author
Forward
0 new messages