确实是慢了点,如果数据很多,可以使用MS SQL SERVER

解决方案 »

  1.   

    very slow, also, 15000条数据 takes 500 秒, it is time  to upgrade your machineby the way, you should only select the records for the current page
      

  2.   

    15000条数据,我觉得差不多,必竟ACCESS的性能远远不能与Sql Server相比,我写的一个读取五千条远程数据库的数据,等到我睡着了。。郁闷!
      

  3.   

    可以使用SQL SERVER 性能会大大提高
      

  4.   

    倒,各位老大,俺打错了,是500毫秒:)留言薄嘛,你不一次取完怎么取?难道用top?没有什么按条件取的:)
    不过第一次访问的时候特慢,用了近30秒才打开首页,当然第一需要查询,结果我保存到了Cache中,以后就快了,不过15000条和1500条差别不大:)可能和用Cache有关吧先把ACCESS搞定,然在用SQL SERVER
      

  5.   

    思归大哥说的只取每页需要的记录
    这个问题真的太难了!只有从SQL语句入手,可惜无法取得这个ID号,不知道谁可以给我个例子
    我现在写程序一般都是全取出来,当然分类的可以按类别取:)
      

  6.   

    the first select uses select top 10 * from yourtablenow, remember the last ID, for the next 10 you will useselect top 10 * from yourtable where ID > YourLastID
    now, remember the last ID and first ID, for the next 10 you will useselect top 10 * from yourtable where ID > YourLastID
    for the previous 10 you will use Select * from (select top 10 * from yourtable where ID < YourFirstID order by ID DESC) t order by ID
      

  7.   

    谢谢思归大哥,这个方法我以前看到过:)不过ACCESS不支持这种SQL语句啊,而SQL SERVER不是每个人都有条件用上