I wonder if there is any support built in for this. I kind of doubt it, but I thought I'd ask, in case I'm missing something.
I need to create a WixDataQuery on the browser side (user clicks on UI widgets that set filters, etc to create the query object)
For performance reasons, I need to run that query on the backend. When run on the front end, the query...at its worst...takes 10 seconds. The same query, run on the back end, takes 2 seconds.
In addition to performance gains, I would like to massage the query result on the back end before sending the results back to the front end. This helps me avoid sending a lot of unnecessary data to the front end.
If I pass the query object from front end code to back end code, it is a JSON blob. Deserializing it only produces a generic Object, not a WixDataQuery object, so there's no find method.
Is there any way to create a WixDataQuery object from a deserialized JSON blob?
Has anyone built something to do this?
Or do I need to roll my own deserializer? (in which case, deserializing filters becomes a bit painful)
Thanks!
OK. Here's my wishlist entry. Everyone vote for it!