sparkfun / phant

the data logging engine behind data.sparkfun.com
700 stars 98 forks source link

How to limit the number of output results? #79

Closed kulve closed 10 years ago

kulve commented 10 years ago

I have set up my own phant server and it's working nicely. But I seem to be getting all the data entries in the server always, even though I try to limit it by setting "page=1". And by all I mean about 4000 entries from the last few days (once per minute).

I would like to be able to query only the latest entry and maybe last X entries. Is that possible?

kulve commented 10 years ago

it seems that by default a page is 500k and that can be adjusted by exporting PHANT_CHUNK.