Maximum Search Results?

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Maximum Search Results?

    Hello, everyone. I am having trouble with a query that I am performing.

    I have a database with a measly 739 records. If I try to perform a search of
    all records in the DB, it returns the page with my heading of "Displaying
    records 1 to 25 of 727". It starts listing my column headers and craps out at
    various points throughout the code. These points are different every time I
    submit the query...one time, it may crap out after the <A of a link tag...the
    next it may crap out before it even gets to that link tag.

    It seems that it isn't processing the code or something. One time it
    displayed my code on the page, as <IMG name="desc" alt=="sort in descending
    order">. It didn't render the code or anything. It just displayed it as if I
    had typed it in text or something.

    After that, it won't even recognize my cookies that I have coded. I even have
    them CFPARAMed, so that they will at least be defined if something freaky
    happens.

    Is there a maximum number of records that I can retrieve? This worked a week
    ago when I tried it and the DB had less records.

    Please help! I am stuck until I get past this issue, and it is holding up a
    production due date.......

    Thanks for any help that can be provided.

    Unamailer Guest

  2. Similar Questions and Discussions

    1. Search results
      When i search it returns all the rows; not the ones i've searched for. Any help would be appreciated. do i end my search page with CFM also? ...
    2. Sending search results to a results page..with asp
      Please help.. very :confused; Ive setup 4 dynamic drop down boxes which populate themselves from my database, this all works fine..The last box...
    3. Help with search results in asp vbs
      I have this query: SELECT * FROM dbo.subwatch WHERE subname like 'varsubname%' AND vendornum like 'varvendornum%' AND city like 'varcity%' AND...
    4. Search within Search Results
      I am trying to do a search within query results: My first search executes fine, but my second search uses the WHERE parameters of my first...
    5. Saving search results?
      In windows 98 you can save search results as a .fnd file. How do I do this in XP? Please help. Do I have to go back to win98?
  3. #2

    Default Re: Maximum Search Results?

    On 2005-05-16 13:59:16 -0500, "Unamailer" <webforumsuser@macromedia.com> said:
    > Is there a maximum number of records that I can retrieve? This worked
    > a week ago when I tried it and the DB had less records.
    What database are you using? There's no maximum number of results in
    theory, and the number you're discussing shouldn't really be an
    issue--I have an app returning 800-900 records for some "wide-open"
    searches that does just fine.

    I'd be curious to hear what database you're using or get more
    information about your setup. I do remember when I was using Access on
    a Java application several years ago (don't ask!) that I had to put
    some threads to sleep momentarily to allow Access to catch up, but if
    you're using a "real" RDBMS like SQL Server, MySQL, Oracle, DB2, etc.
    returning 700+ records wouldn't even make the database blink. Dealing
    with them on the web app side *might* be an issue if you're on an
    underpowered/overutilized server but let us know more about your setup
    and post the relevant code so we can better see what's up.

    Matt

    --
    Matt Woodward
    [email]mpwoodward@gmail.com[/email]
    Team Macromedia - ColdFusion

    mpwoodward *TMM* Guest

  4. #3

    Default Re: Maximum Search Results?

    Matt:

    Thanks for the reply. I am using a MS Access database (can't get the company
    to buy a copy of SQL yet).

    However, I actually found out what my problem was. Here goes:

    When performing the query, I am pulling program number, program date, and
    error code. Each program number is 8 characters in length. Once the query is
    performed I am creating an array to store the program number associated with
    each record. I then store that array as a list (using ArrayToList) into a
    cookie.

    Problem is, when there are a little more than 450 records, I am storing more
    than the cookie can hold. They have a max length of 4096 records (4KB). I
    wasn't aware of that length size limit of cookies. So, needless to say, 738
    records were blowing that limit to pieces (more than 6500 characters, including
    the delimiter in the list), causing the code to crap out.

    Again, I appreciate you taking the time to look into it and reply. Also,
    sorry to waste your time with my ignorance! :o

    Have a great week!:beer;

    Unamailer 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