-
Notifications
You must be signed in to change notification settings - Fork 2
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
Create pipestat iter for dbbackend #97
Comments
given filter conditions, returned paged iterator. |
Here's an implementation of this I wrote for seqcolapi. It may just work to take these functions and stick them on the class in pipestat. Then, it will be an iterable One thing we should change, though: this code is based on an offset-based pagination. I think we should switch to a cursor-based pagination, which will be more performant -- and in fact, since @donaldcampbelljr already implemented this in pipestat, we should just use that for the 'next page' functionality here. |
I modified pipestat's iterator to use the cursor position and limit. It can be used like so:
Because pipestat inherits from mutable_mapping, I could only modify |
* initial test #97 * iterate on select_records if file backend * Implement iterator with cursor and limit, finish tests * update docs
may be useful in tandem with seq col project
The text was updated successfully, but these errors were encountered: