electrode-io / electrode-ota-server

Electrode Over The Air Server for hot deployment of React Native and Cordova mobile apps
Other
204 stars 40 forks source link

fix real-time metrics query and add ccm to control it #140

Closed scrajesh closed 4 years ago

scrajesh commented 4 years ago

retrieving real-time metrics by time range fails if used timestamp

  1. converting create_time to timestamp using UNIX_TIMESTAMP() in each record takes more time.
  2. simple date comparison create_time >= '2020-04-20 19:01:00' yields results.

added ccm config(doRealTimeMetrics) to control real-time data fetch, so that it can be turned off if not required.