Smart data storage flow meter: convenient for historical data query and analysis