Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Hi all,

Hi all,

Scheduled Pinned Locked Moved Web Development
helpdatabasequestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hy Chanhan
    wrote on last edited by
    #1

    I use PHP5/MYSQL5 ------------------ I need you to help, i have a serious problem when i look up records from database number of 18939 records in ComboBox ({value}). My webpages open so slow maybe 2 minutes or more, How can i make it faster than when there are many record like this. Please help me now. Thank you in advanced. Hy Chanhan

    Steve EcholsS B 2 Replies Last reply
    0
    • H Hy Chanhan

      I use PHP5/MYSQL5 ------------------ I need you to help, i have a serious problem when i look up records from database number of 18939 records in ComboBox ({value}). My webpages open so slow maybe 2 minutes or more, How can i make it faster than when there are many record like this. Please help me now. Thank you in advanced. Hy Chanhan

      Steve EcholsS Offline
      Steve EcholsS Offline
      Steve Echols
      wrote on last edited by
      #2

      You need to filter your recordset to include less results. Nobody, will look at a Combobox with 18000 items in it! Maybe you can use several comboboxes to categorize the results, so the last combobox will have just a few items. Example: combobox 1: States combobox 2: Counties combobox 3: Towns combobox 4: Cool Places Do you get my meaning?


      - S 50 cups of coffee and you know it's on!

      • S
        50 cups of coffee and you know it's on!
        Code, follow, or get out of the way.
      1 Reply Last reply
      0
      • H Hy Chanhan

        I use PHP5/MYSQL5 ------------------ I need you to help, i have a serious problem when i look up records from database number of 18939 records in ComboBox ({value}). My webpages open so slow maybe 2 minutes or more, How can i make it faster than when there are many record like this. Please help me now. Thank you in advanced. Hy Chanhan

        B Offline
        B Offline
        Brent Lamborn
        wrote on last edited by
        #3

        In ASP you can use an application variable to cache the result of a database query. Then when a page loads you grab the variable instead of hitting the database, speeding things up and using less resources at the same time. PHP most likely has something similar. A search on google for "php application variable" resulted: http://www.leosingleton.com/projects/code/phpapp/[^]

        "Half this game is ninety percent mental." - Yogi Berra If you can read thank a teacher, if you can read in English, thank a Marine. M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups