监控项目,16个传感器,采样频率50hz, 建了一个表存储数据,结构简单:时间+ 数值Create Table real_data(
record_time timestamp(3),
ac_1 Float,
ac_2 Float,
ac_3 Float,
ac_4 Float,
ac_5 Float,
ac_6 Float,
ac_7 Float,
ac_8 Float,
ac_9 Float,
ac_10 Float,
ac_11 Float,
ac_12 Float,
ac_13 Float,
ac_14 Float,
ac_15 Float,
ac_16 Float
)
Tablespace data_test;每10分钟有一个job  从将该表的数据 移到 另一张表中去。现在有个业务逻辑是 客户端 每20ms 或者40ms  取该表的最新的一条数据。
语句为:
select RECORD_TIME,ac_6 from (select RECORD_TIME,ac_6 from ac_real_data order by record_time desc)  where rownum<=1 order by record_time desc现 出来的结果, 每3-4次查询的 的数据 是一样的,然后时间突然跳变。 但是情况是 这个表 20ms 就有数据插入,基本没有延迟。2017-02-23 15:38:53,569 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,600 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,661 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,693 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,723 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,756 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,786 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,816 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,847 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,887 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,924 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,958 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:53,994 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:54,039 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:20 320
2017-02-23 15:38:54,390 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:23 320
2017-02-23 15:38:54,466 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:23 320
2017-02-23 15:38:54,507 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:23 320
2017-02-23 15:38:54,550 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:23 320
2017-02-23 15:38:54,584 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:23 320
2017-02-23 15:38:54,635 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:23 320
2017-02-23 15:38:54,675 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:23 320
2017-02-23 15:38:54,707 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:23 320
2017-02-23 15:38:54,755 [ 8] DEBUG testchart.Window1:          time is 2017-02-23 15:35:23 320
这个是怎么回事? 谢谢!