pip-services3-go / pip-services3-postgres-go

Postresql components for Pip.Services in Golang
MIT License
0 stars 0 forks source link

Total Incorrect for Pagination #10

Closed antonio-alexander closed 1 year ago

antonio-alexander commented 2 years ago

I'll take the blame for pushing you guys in this direction when I first had the issue with total (I I opened an issue with the postgres implementation). We've done more work around pagination and understanding how it works, we need this behavior fixed/amended within memory persistence for GetPageByFilter such that if I make a query for a given skip/take I'll get the same data and the total will represent the total amount of data represented to that query if I asked for all of it rather than a specific skip/take. This is assuming the underlying data doesn't change in a way to make the total change (this is expected and OK). Some examples are below:

Let me know if this makes sense, i'm going to copy+paste this same issue for data.

antonio-alexander commented 1 year ago

I was able to confirm your results, it must have been an error on my part. Thanks for your patience.