MaxRecords to make db call faster

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default MaxRecords to make db call faster

    Hello, all. We have a search page that can return many thousands of records
    from a SQL Server 2000 database. We've noticed that it's slow -- mainly b/c
    the stored procedure arranges the person's first, middle, last names into
    'name' before returning the results. In addition, we're using recordset
    paging (using Pagesize and Pagecount properties of the recordset). Will we
    see a speed performance by using the Maxrecords property of the recordset?
    Are there any examples with recordset paging? Thanks.


    dw Guest

  2. Similar Questions and Discussions

    1. Can't make a Call to main.asc
      Okay, I've got something simple going on but I can't see it. I am trying to add a heartbeat function to main.asc so that my client apps can...
    2. How to make XML file load faster
      I'm new to flex and have been playing with Flex 2 beta 1 and the flexstore example. What I'm trying to do is have the catalog.xml file load faster...
    3. Make a query faster...
      Dear all, Context: FreeBSD postgresql 7.4.5, on a pentium 3 server 128MB. I have a huge table letture02 made of 1,340,000 "freezed" records of...
    4. HOW TO MAKE MY SITE LOAD FASTER?!
      Hello. I have created my new site using Flash MX. It has 6 categories, quite a bit of graphics. Each categorie is a separate ..fla file, with...
    5. Make php faster?
      hi, I've been recently testing a little few things with php (mainly speed). On thing I've noticed is that php is incredible SLOW to start up....
  3. #2

    Default Re: MaxRecords to make db call faster

    Plenty of different approaches here:

    [url]http://www.aspfaq.com/2120[/url]

    Also, suggest doing the string operations on the name at the client, where
    you have to treat each iteration in the loop anyway. This should reduce the
    strain on the actual SQL call...

    A



    "dw" <cougarmana_NOSPAM@uncw.edu> wrote in message
    news:uMHsyB%23GEHA.2408@TK2MSFTNGP10.phx.gbl...
    > Hello, all. We have a search page that can return many thousands of
    records
    > from a SQL Server 2000 database. We've noticed that it's slow -- mainly
    b/c
    > the stored procedure arranges the person's first, middle, last names into
    > 'name' before returning the results. In addition, we're using recordset
    > paging (using Pagesize and Pagecount properties of the recordset). Will we
    > see a speed performance by using the Maxrecords property of the recordset?
    > Are there any examples with recordset paging? Thanks.
    >
    >

    Aaron Bertrand [MVP] Guest

  4. #3

    Default Re: MaxRecords to make db call faster

    Thanks, Aaron. However, we know how to do recordset paging; but returning
    1100 records (even w/out the string concatenation) is slow. When we use
    maxrecords, it limits the entire recordset. What we're trying to do is to
    design the paging to just fetch the ones for that page, not the entire
    recordset. Thanks.

    "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    news:ui6JxY%23GEHA.3556@TK2MSFTNGP11.phx.gbl...
    > Plenty of different approaches here:
    >
    > [url]http://www.aspfaq.com/2120[/url]
    >
    > Also, suggest doing the string operations on the name at the client, where
    > you have to treat each iteration in the loop anyway. This should reduce
    the
    > strain on the actual SQL call...
    >
    > A
    >
    >
    >
    > "dw" <cougarmana_NOSPAM@uncw.edu> wrote in message
    > news:uMHsyB%23GEHA.2408@TK2MSFTNGP10.phx.gbl...
    > > Hello, all. We have a search page that can return many thousands of
    > records
    > > from a SQL Server 2000 database. We've noticed that it's slow -- mainly
    > b/c
    > > the stored procedure arranges the person's first, middle, last names
    into
    > > 'name' before returning the results. In addition, we're using recordset
    > > paging (using Pagesize and Pagecount properties of the recordset). Will
    we
    > > see a speed performance by using the Maxrecords property of the
    recordset?
    > > Are there any examples with recordset paging? Thanks.
    > >
    > >
    >
    >

    dw Guest

  5. #4

    Default Re: MaxRecords to make db call faster

    I think I may have found an answer at
    [url]http://www.aspfaqs.com/webtech/062899-1.shtml[/url]. Thanks, Aaron.

    "dw" <cougarmana_NOSPAM@uncw.edu> wrote in message
    news:%23ASkIR$GEHA.624@TK2MSFTNGP10.phx.gbl...
    > Thanks, Aaron. However, we know how to do recordset paging; but returning
    > 1100 records (even w/out the string concatenation) is slow. When we use
    > maxrecords, it limits the entire recordset. What we're trying to do is to
    > design the paging to just fetch the ones for that page, not the entire
    > recordset. Thanks.
    >
    > "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    > news:ui6JxY%23GEHA.3556@TK2MSFTNGP11.phx.gbl...
    > > Plenty of different approaches here:
    > >
    > > [url]http://www.aspfaq.com/2120[/url]
    > >
    > > Also, suggest doing the string operations on the name at the client,
    where
    > > you have to treat each iteration in the loop anyway. This should reduce
    > the
    > > strain on the actual SQL call...
    > >
    > > A
    > >
    > >
    > >
    > > "dw" <cougarmana_NOSPAM@uncw.edu> wrote in message
    > > news:uMHsyB%23GEHA.2408@TK2MSFTNGP10.phx.gbl...
    > > > Hello, all. We have a search page that can return many thousands of
    > > records
    > > > from a SQL Server 2000 database. We've noticed that it's slow --
    mainly
    > > b/c
    > > > the stored procedure arranges the person's first, middle, last names
    > into
    > > > 'name' before returning the results. In addition, we're using
    recordset
    > > > paging (using Pagesize and Pagecount properties of the recordset).
    Will
    > we
    > > > see a speed performance by using the Maxrecords property of the
    > recordset?
    > > > Are there any examples with recordset paging? Thanks.
    > > >
    > > >
    > >
    > >
    >
    >

    dw Guest

  6. #5

    Default Re: MaxRecords to make db call faster

    > Thanks, Aaron. However, we know how to do recordset paging; but returning
    > 1100 records (even w/out the string concatenation) is slow. When we use
    > maxrecords, it limits the entire recordset. What we're trying to do is to
    > design the paging to just fetch the ones for that page, not the entire
    > recordset. Thanks.
    Did you notice that the article I pointed out offers several methods that
    just fetch the ones for that page, not the entire recordset?


    Aaron Bertrand [MVP] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139