How to speed up database access Here is a trick to loop through a recordset faster. Often when looping through a recordset people will use the following code: Do While Not Records.EOF Combo1.AddItem Records![Full Name] Eecords.Movenext LoopThe problem is that everytime the database moves to the next record it must make a check to see if it has reached the end o...[ 查看全文 ]
问题描述: 我们要访问的表是一个非常大的表,四千万条记录,id是主键,program_id上建了索引。 执行一条SQL: select * from program_access_log where program_id between 1 and 4000 这条SQL非常慢。 我们原以为处理记录太多的原因,所以加了id限制,一次只读五十万条记录 select * from program_access_log where id between 1 and 500000 and program_id between 1 an...[ 查看全文 ]