That query should be inexpensive. You can also try `SELECT LAST(fieldKey)
FROM measurement` which should perform comparably but may be a little
quicker. If you can provide a time range, i.e. if you know the most recent
point is in the past day or the past week, you should see results even more
quickly. Same goes for providing any tags, e.g. `WHERE myKey = 'myValue'`
to narrow down the search.

On Fri, Dec 30, 2016 at 7:29 AM, Jeffery K <
[email protected]> wrote:

> As I look for long running queries in the history, the only thing I see is
> a show field keys for measurements.
> as we try to determine what the latest timestamp is for a particular
> measurement, we've found that we can't simply ask for time, but we have to
> say select time,<anyFieldkey> from measurement order by time desc limit 1
> Could this combination of show field keys, then the select for
> time,fieldKey be an issue if it's repeated many times?
>
> --
> Remember to include the version number!
> ---
> You received this message because you are subscribed to the Google Groups
> "InfluxData" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/influxdb.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/influxdb/26d39b0a-be2b-4646-baa2-49caf7646893%40googlegroups.com
> <https://groups.google.com/d/msgid/influxdb/26d39b0a-be2b-4646-baa2-49caf7646893%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Remember to include the version number!
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/CALxJwdMjmkS48%2BVcTnsyf2ayy4kW7QbWJkZaxBX8NJ%3Dtcq1RSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to