Results 1 to 2 of 2
  1. #1
    buddhi225 is offline Freshman
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default Speed when pulling data from database

    Hi,
    I have created an offline system which normally runs very quickly.
    But when it comes to displaying more and more information in a table it starts slowing down.

    Eg. Only 1 item gets displayed. People can click + or - images and it adds an addition # of item 1. (still only 1 record showing)

    As people add more items, (item 2, 3, 4, 5) it now shows 5 items in the table. When people click + or - images it now slows down. It seems sluggish.

    When people click + and - it changes database entry and then redirects them. When it redraws the new page it responds slower (people cant spam click + and - anymore)
    Is there anyway to display the items in the table faster? or to speed up the page creation?

    I think I know one way I can change it but I'm not sure about the code. At the moment its split between 2 functions. Pulling data from 2 database tables.

    This is how I pull data from the database. How do I pull from multi tables in same SELECT?

    PHP Code:
    $sql_text "SELECT id, minsize, maxsize FROM ".$this->TABLES[$type]." WHERE id = '$unitid' ORDER BY id"
    By making this 1 function would it speed everything up?

  2. #2
    sudoku-master is offline Freshman
    Join Date
    May 2009
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    has the id in every table an index? every field that is used in a where clause schould have an index, that mean these fields should defined as a key for this table...

    an other break is when the indexes for the keys are so big that they couldn't stored in the RAM...

Similar Threads

  1. How best ot optimize content?
    By wujijiangjun in forum Search Engine Optimization
    Replies: 13
    Last Post: 10-27-2011, 08:21 AM
  2. data in Database
    By gkumar in forum Databases
    Replies: 5
    Last Post: 11-02-2010, 06:54 AM
  3. Replies: 0
    Last Post: 05-14-2010, 10:57 AM
  4. Replies: 5
    Last Post: 04-27-2010, 10:35 PM
  5. Replies: 0
    Last Post: 12-22-2009, 09:51 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS