大数据分页的一种优化方法
November 23rd, 2010
No comments
通常应用需要对表中的数据进行翻页,如果数据量很大,往往会带来性能上的问题:
root@sns 07:16:25>select count(*) from reply_0004 where thread_id = 5616385 and deleted = 0;
+———-+
[……]
通常应用需要对表中的数据进行翻页,如果数据量很大,往往会带来性能上的问题:
[……]
应用程序的误删除了线上的一条数据,需要恢复
删除时间:2010-11-08 00:11:21
1.首先考虑使用oracle的flashback query
select *
from users
as of scn
timestamp_to_scn(to_timestam[……]