Efficient record paging in CFMX MSSQL

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Efficient record paging in CFMX MSSQL

    When we moved from CF5 to CFMX, we saw the read speeds on our MS SQL2000
    database increase by 1500%.

    A simple read coded as shown below, ran in less than 1 second in CF 5, but
    takes 30+seconds in CF6.

    <CFQUERY name="searchcontent" datasource="#Database#" username="#USER#"
    password="#PASS#">
    SELECT page_number, headline, byline,
    department,html,alternate_link,show_rss,active_dat e,image1,access,align1,active_
    date
    FROM content
    ORDER BY active_date DESC, content_rank ASC, Page_number DESC
    </CFQUERY>

    In CF 5, the above read would require less than 1 second. But in CFMX it
    takes 30 seconds or more.

    We've reduced some of the problem by including a 'top 100' in the read
    statement where possible.

    But when we need to page through the database, it can take 30 seconds just to
    read the database and then display a few records at a time.

    Because of this, we are looking for an efficient paging system (back / next).

    All of the ones we have found so far work after the query, which means the
    entire database is read each time a new page is requested.

    Even though we only show 10 records per page, CF still reads the entire
    database within a paging system.

    Again, this wasn't a problem with CF5. But with CF MX and MS SQL2000, it is
    a huge problem for us. 30+ seconds to read 50,000 records.

    Any suggestions? (We are hosted by Intermedia.net, CF 6.1, MS SQL 2000).

    Bill

    bmyers Guest

  2. Similar Questions and Discussions

    1. Single Record Paging in a Query
      Once on a single record's detail page, I use it's CategoryID to create a second query, which is a list of records in the same category. I would like...
    2. Single row of data displayed horizontally next to label names with paging per record... possible?
      My employer really likes DataGrids for displaying some of our data for dashboards and such, but would like to be able to browse one of our...
    3. Working Efficient with ID CS
      Hello, A couple of weeks ago I went to a seminar of ID CS Page maker edition. I saw that ID has much more possibilities than Page maker 6.5 which...
    4. Record paging through question
      I have a problem with the paging function. The rs.pagecount seems only refer to the total number of records, not the selected ones. So it works...
    5. Looking for the most EFFICIENT way to do the following...
      I have a table that has links in it. Columns: id, item, link_name, url. I want to run through the recordset of this table and so something like...
  3. #2

    Default Re: Efficient record paging in CFMX MSSQL

    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?event=view&id=KC.tn_19[/url]
    570&extid=tn_19570&dialogID=25898513&iterationID=2 &sessionID=96303695ccb6315a1f8
    0&stateID=0+0+25902532&mode=simple

    Check that link, maybe could help.

    Regards

    Sojovi 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