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

is there anyway to limit the total value? #1134

Open
jochman opened this issue Apr 21, 2024 · 3 comments
Open

is there anyway to limit the total value? #1134

jochman opened this issue Apr 21, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@jochman
Copy link

jochman commented Apr 21, 2024

Hi again!
I'm using motor.

Is there any way to limit the Total value?

I couldn't find a way that isn't included in give a first $limit to aggregate then keep the paginate_aggregate as usual.

@uriyyo uriyyo self-assigned this Apr 26, 2024
@uriyyo uriyyo added the question Further information is requested label Apr 26, 2024
@uriyyo
Copy link
Owner

uriyyo commented Apr 26, 2024

Hi @jochman,

I'm not sure I understood what you want to achieve(

You want to limit total number of returned rows by paginate_aggregate function?

@onejgordon
Copy link

I'm not sure if this is what the original question is about, but I interpreted it as a way to ceiling the number of records counted in the total response, presumably for performance reasons. Is this supported?

@uriyyo
Copy link
Owner

uriyyo commented Apr 27, 2024

@onejgordon I'm not sure about that. Sorry, need to take a look. I guess this integration was done by one of contributors, I need to figure out what is going on inside implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants