0

this is my SQL:

select last_row(*) from test.meters where ts now-100d group by tbname;

I have 100000000 rows of data ,and it cost me 11 seconds. like this :

enter image description here

I don't think it is the best performance ,may I know how to improve it .

Yu Chen
  • 70
  • 1
  • 5

1 Answers1

0

please run this command in TDengine database shell :

select * from information_schema.ins_databases\G;

to check if 'cachemodel' is none ,if it is , set it to 'both'

Then try again.

Yu Chen
  • 70
  • 1
  • 5