Breeze is brilliant but we're running into memory issues with large result sets. I have an idea of what I'd like to achieve and would value any thoughts about the best approach...
For special (large) result sets I'd like to get Breeze to execute a query against a server service like normal but NOT turn those results into Entities - instead strip out the extra "Breeze" JSON and give me a plain list of JavaScript objects (ideally with the property casing changed to suit the client).
I could then put these results into an ObservableArray and bind them using Knockout - but without the overhead of each of the properties being observable or tracked.
when the user indicated that they wanted to edit a record, I could then create an appropriate Breeze entity and splice it into the ObservableArray in place of the plain Javascript object. As long as the property names matched exactly then the Knockout bindings shouldn't be any the wiser.
Breeze could then track changes and provide saving like normal for the few records that actually get edited.
My hope to retain some of the value of Breeze but avoid the overhead for these large result sets. Specifically I want to avoid create custom (non-Breeze) server-side controller methods if possible.
Can anyone suggest the best places to break into Breeze to try and achieve this? (or a better approach)
Thanks for any comments.