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

ViewModels #114

Closed
ritch opened this issue Dec 21, 2013 · 8 comments
Closed

ViewModels #114

ritch opened this issue Dec 21, 2013 · 8 comments

Comments

@ritch
Copy link
Member

ritch commented Dec 21, 2013

ViewModels

We should support some form of ViewModel. A very simple implementation could depend explicitly on MongoDB. I'm struggling to come up with the exact js API, but the features would be:

  • readonly
  • aggregate data from multiple data sources based on model relations
  • focus on read performance (and local caching config?)
  • able to be created without DBAs / sql / etc
  • avoid joins and slow SQL operations
  • query the aggregated data

A real use case for this is illustrated in the access control example app. The client currently makes a single http request and the server calculates the account balance on demand.

With a ViewModel, the app would make the request to the ViewModel which would be backed by an aggregation (including caluclations) of all the transaction data.

@bajtos
Copy link
Member

bajtos commented Jan 2, 2014

👍

@seanbrookes
Copy link

Sounds like a good idea but I would suggest a slightly different name to avoid confusion with front-end views. Maybe DataViewModel or something.

@bajtos
Copy link
Member

bajtos commented Jan 2, 2014

Maybe DataViewModel or something.

How about ClientModels, MobileModels, FrontModels?

@raymondfeng raymondfeng added this to the 2.0.0 milestone Feb 28, 2014
@raymondfeng raymondfeng self-assigned this Feb 28, 2014
@bajtos bajtos mentioned this issue Sep 30, 2014
47 tasks
@bajtos bajtos modified the milestone: #Rel lb 2.0.0 Sep 30, 2014
@violet-day
Copy link

Great!

@seanbrookes
Copy link

I like ViewModel, ViewDataModel

On Tue, Feb 10, 2015 at 5:55 AM, Nemo [email protected] wrote:

Great!


Reply to this email directly or view it on GitHub
#114 (comment).

StrongLoop http://strongloop.com/_\* makes it easy to develop APIs
http://strongloop.com/mobile-application-development/loopback/
in Node,
plus get DevOps capabilities
http://strongloop.com/node-js-performance/strongops/ like monitoring,
debugging and clustering*
._

@dregre
Copy link

dregre commented Nov 29, 2015

+1

@cgole cgole removed the ease-of-use label Jan 7, 2017
@ghost ghost mentioned this issue Feb 12, 2017
@stale stale bot added the stale label Aug 23, 2017
@stale
Copy link

stale bot commented Aug 23, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot closed this as completed Sep 6, 2017
@stale
Copy link

stale bot commented Sep 6, 2017

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

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

9 participants