Right now if we want to use paginated queries with DCD which have different arguments, we need to have a count method for each paged query we want to use. Could we have the count signature move to the beginning and pass any other argument if present?
Like that we could have 1 count method for N paged queries.
function getFirstPagedQuery( startIndex, numItems )
function getSecondPagedQuery( startIndex, numItems , arg1 )
function getThirdPagedQuery( startIndex , numItems , arg1, arg2, arg...)
the count function would then based on passed arguments evaluate which query to run and return the corresponding count.
This is currently not supported as part of the client side data management features.
Pls .file an enhancement for this.
Current lazy-loading implementation is very limited to be usefull enough. Large objects (with many many-to-one and one-to-many relationships) will force us to skip lazy loading since getItem will take too long to build the full object graph.