Results 1 to 9 of 9

Thread: my query is slowing down!

Threaded View

  1. #1

    Thread Starter
    Frenzied Member wengang's Avatar
    Join Date
    Mar 2000
    Location
    Beijing, China
    Posts
    1,604

    Resolved my query is slowing down!

    Hi all.
    I guess the first thing I need to know is:
    if I set the pagesize of my recordset for an Access database, connected by ADO, does the size of the datatable still affect the speed of the query?

    My datatable has about 30,000 records and growing. The query retrieves all records, but the pagesize is 100 records. So, I am thinking that, regardless how many records there are, only 100 records are being dealt with whenever the page loads (ASP), and therefore the speed should remain constant. is that wrong?
    This page has started taking forever to load. The amount of data in each record is pretty small. Only a few fields and mostly numbers

    Okay, besides that, a couple of basic questions. Am I doing this in an inefficient manner? Is pagesize not the way that sites display X records per page?
    This is my current system. Please advise if you'd do it differently:

    SET rs6=CreateObject("ADODB.Recordset")
    sql6 = "select * from tblPageLog"
    rs6.Open sql6,conn,1,3
    rs6.pagesize=100
    rs6.absolutepage=request("page")
    for t = 1 to rs6.pagesize
    if not rs6.eof then
    'display the data in a table......
    rs6.movenext
    end if
    next

    And, I also have a SqlServer database on this site. Can anybody tell me definitively if SQLServer is faster in any sense than Access? I've been thinking of moving the whole site to SQLServer.
    Last edited by wengang; Jun 6th, 2005 at 03:20 AM.
    Wen Gang, Programmer
    VB6, QB, HTML, ASP, VBScript, Visual C++, Java

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width