mit-pdos / noria

Fast web applications through dynamic, partially-stateful dataflow
Apache License 2.0
4.97k stars 241 forks source link

Question: noria for mobile/desktop apps as embeded database? #168

Closed molikto closed 4 years ago

molikto commented 4 years ago

I think mobile apps also faces same problem, database queries are invalidated when an update happens. The mobile ORMs fake "reactive" by re-query the db. This is slow.

Can noria be adapted to used for mobile? The differences are:

  1. mobile db access is much less concurrent.
  2. to minimalize memory usage, only the part that is visible to the user is queried (for example a conversation in an chat app). as user scroll the screen, more data is appended using another query. I am not sure what the "upquery" thing exact are, but it sounds like what I have in mind for this case. can this case be handled transparently (and incrementaly) for the user?
jonhoo commented 4 years ago

Yeah, in theory you could totally have the server feed updates to the client, which could then apply the incrementally. That's a whole, and huge, project of its own though, and not something that's likely to be implemented here any time soon :)