cfquery with maxrows supposed to be faster?

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

  1. #1

    Default Re: cfquery with maxrows supposed to be faster?

    The query speed will not be affected. The page will load more quickly though, if you are displaying only 10 rows of data rather than 50.

    How long is it taking your query to run anyway?
    Dan Bracuk Guest

  2. Similar Questions and Discussions

    1. cfquery with maxrows = faster processing ?
      Yes, there is an increase in speed, as returning 10 rows is less work than returning 50, but that may not be the whole story. Most of a query's work...
    2. Using Maxrows with Nested Output
      This seems so simple but how does MAXROWS work with nested queries that are grouped? If you apply it at the top level it limits the number of...
    3. CFQUERY and maxrows attribute
      ok, maybe I'm on some bad crack today, but I recall that the maxrows attribute of cfquery works AFTER the resultset is returned to CF from the DB. ...
    4. CFGRID ? maxRows
      I agree with ArtNirvana. If you have maxRows then is reasonable to have page navigation and also you can think about record locator based on sort...
    5. DuplicateMovieClip goes faster and faster
      hi! I'm trying to program a game in which oranges drop down. These oranges are created by a duplicateMovieClip. A new orange is created everytime...
  3. #2

    Default Re: cfquery with maxrows supposed to be faster?

    > The query speed will not be affected.

    Well... *yeah*, it will be. It difference is likely to be trivial if the
    DB has only to produce 50 rows, of which CF only "listens" to ten, but
    there is overhead there.

    If one wants to restrict the size of a recordset, one should always used
    DB-system-specific row limitations (TOP, LIMIT, ROWNUM filters), rather
    than CF's "maxrows". All maxrows does is tell CF to stop listening to the
    returned data after that many rows, it does not do anything to advise the
    DB system to curtail its processing.

    --
    Adam
    Adam Cameron 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