Skip to content
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

refactor limit #32

Closed
wants to merge 1 commit into from
Closed

refactor limit #32

wants to merge 1 commit into from

Conversation

dongweiming
Copy link

@dongweiming dongweiming commented Apr 25, 2019

I don't think use limit_count as a parameter is the best solution, after that, it might also pass offset, having and so on, there are too many params

@Vector919 @tomchristie please review, thanks!

@dopry
Copy link
Contributor

dopry commented Oct 10, 2019

@dongweiming can you describe specific cases these changes support or improve? Some code samples of the cases would help a lot.

@dopry
Copy link
Contributor

dopry commented Oct 10, 2019

I did a little looking at Django's limit implementation. While Django doesn't have a limit method and uses a getitem overload to handle to use array slice syntax for limiting, it doesn't produce a new queryset on limit. The supports some of the changes @dongweiming is suggesting in this refactor.

@tomchristie, @ryananguiano, what are your thoughts?

@dopry dopry reopened this Oct 14, 2019
@aminalaee aminalaee closed this Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants