Let's you have a science experiment called Weather
and it records general information about the weather, one of which is recording the humidity
every minute. After say 10 hours, you'll have 600 database values stored.
Weather.objects.filter().exclude(time__lt = commence).exclude(time__gt = cease)
This would create a filter for the Weather
table, between the commence
and cease
times.
Let's say the time criteria is equal to -4 hours from present, therefore it would return the last 4 hours worth of data which is equal to 300 values. How would I ask for an interval of 10? Meaning, from these 300 values, how would I receive the 10th one of each, so 10, 20, 30, 40 ... 280, 290, 300... which would mean 30 values are being returned from the filter.
EDIT:
Would it be possible to ask for an interval of say 10 seconds? As opposed to each individual 10th value..