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

Support Live Queries #74

Open
tommykennedy opened this issue Apr 3, 2015 · 1 comment
Open

Support Live Queries #74

tommykennedy opened this issue Apr 3, 2015 · 1 comment

Comments

@tommykennedy
Copy link
Contributor

Orientdb has just added a branch for being able to do pub/sub and reactive programming (stream processing).

It would be great to get this added to sails-orientdb

http://www.slideshare.net/Codemotion/dell-aquila-codemotionrome2015

@dmarcelino
Copy link
Member

Hi @tommykennedy, it's not likely that sails-orientdb will support OrientDB 2.1 due to the bug orientechnologies/orientdb#3619, which the OrientDB folks are only planning to fix on v2.2. I've tried to convince Luca to fix this on 2.1 but he didn't budge... You can check our 2.1 status in #52.

Regarding live queries specifically, it's probably a good idea to wait for the changes to reach Oriento master. Anyway, for now you can do:

//...
var db = SomeModel.getDB();
db.liveQuery("live select from Chat")
  .on(function(data){
    io.emit(/*...*/);
  });
//...

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

No branches or pull requests

2 participants