-
Notifications
You must be signed in to change notification settings - Fork 53
query perfomance and points writing order #70
Comments
Hi, |
Hello, influxdb-cpp -> |
Hello Again. |
Indeed this should be definitely optimised... |
Actually I did check performance and I got:
|
Hello Awegrzyn, |
Hello,
I am writing 2 points with every "for" iteration and query for points database using time start of write and time start of stop write.
Everything works fine but the query response is realy slow compared to writing.
For instance:
tstart
For ( 1 < 10000 ) {
write -> point { A }
write -> point { B }
}
tstop
then i query all points in time interval -> SELECT * FROM /.*/ WHERE TIME >= (tstart) + " AND TIME < (tstop)
I manage to write (HTTP), 20000 points in total ( A and B ) in 200ms and manage to retrieve them in 1.7s which is almost 10 times slower. This ratio stays no matter how many points.
How can i improve this query time ?
And second:
I write 10000 points of A and 10000 points of B one by one but when using influx command line and select all, the result is sequential, first 10000 (A) points followed by 10000 (B) points with mixed database timestamp.
It should be timeseries:
timestamp1 - A
timestamp2 - B
timestamp3 - A
timestamp4 - B
Why is that?
The text was updated successfully, but these errors were encountered: