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

Update LIMIT and OFFSET to SLIMIT and SOFFSET and implement LIMIT and OFFSET #1709

Closed
pauldix opened this issue Feb 24, 2015 · 7 comments
Closed

Comments

@pauldix
Copy link
Member

pauldix commented Feb 24, 2015

LIMIT and OFFSET currently set the limit and the offset on the series that are returned. We need another layer of limiting, which is the number of data points in each of those series. Change the series limit and offset to SLIMIT and SOFFSET and update the current LIMIT and OFFSET to be limits and offsets for the points within each series.

This means that if you do a group by on a tag, you could potentially still get a ton of data back if the tag has a high cardinality.

@otoolep
Copy link
Contributor

otoolep commented Feb 24, 2015

If this is all about paging through points in a series with a lot of data, and narrower time ranges are still not sufficient, seems like we do need it. No other command comes to mind.

@IngaFeick
Copy link

+1 on the functionality. It is very much needed indeed, but I would suggest to switch the names as I'd expect limiting on the database to be the more frequently used case (at least from the way that I use the database).

@IngaFeick
Copy link

Also I think using the LIMIT for the datapoint limit instead of the series is more compatible with sql tradition and previous versions of influxdb. Maybe use SLIMIT for a series limit instead?

@jnutzmann
Copy link

+1 for SLIMIT

I agree with Ynguibjoerg. To me, LIMIT should control the number of rows
returned. Also, I thought LIMIT was used this way in 0.8, so changing
meaning is confusing.
On Mar 2, 2015 4:44 AM, "Ynguibjoerg" notifications@github.com wrote:

Also I think using the LIMIT for the datapoint limit instead of the series
is more compatible with sql tradition and previous versions of influxdb.
Maybe use SLIMIT for a series limit instead?


Reply to this email directly or view it on GitHub
#1709 (comment).

@pauldix
Copy link
Member Author

pauldix commented Mar 3, 2015

I think I'm sold on that. LIMIT and SLIMIT. Besides, it's easier to say "slimit" than "plimit", no?

@pauldix pauldix changed the title Implement PLIMIT and POFFSET Update LIMIT and OFFSET to SLIMIT and SOFFSET and implement LIMIT and OFFSET Mar 4, 2015
@mre
Copy link
Contributor

mre commented Mar 6, 2015

+1 Awesome!

@nemesifier
Copy link

👍 for LIMIT and SLIMIT

@pauldix pauldix removed the 1 - Ready label Mar 10, 2015
pauldix added a commit that referenced this issue Mar 11, 2015
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

No branches or pull requests

6 participants