Results 1 to 2 of 2
-
05-23-2009, 11:46 AM #1
Freshman
- Join Date
- May 2009
- Posts
- 3
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
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?
By making this 1 function would it speed everything up?PHP Code:$sql_text = "SELECT id, minsize, maxsize FROM ".$this->TABLES[$type]." WHERE id = '$unitid' ORDER BY id";
-
05-28-2009, 08:24 AM #2
Freshman
- Join Date
- May 2009
- Posts
- 12
- Thanks
- 0
- Thanked 0 Times in 0 Posts
- Feedback Score
- 0
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
-
How best ot optimize content?
By wujijiangjun in forum Search Engine OptimizationReplies: 13Last Post: 10-27-2011, 08:21 AM -
data in Database
By gkumar in forum DatabasesReplies: 5Last Post: 11-02-2010, 06:54 AM -
[UK] ★ VPS with Double RAM! ★ Double Disk, Double Data too ★ From £7.99/month ★
By gigatux in forum Web Hosting ProvidersReplies: 0Last Post: 05-14-2010, 10:57 AM -
Google executive hired by Facebook for data center management
By mamedesign in forum GoogleReplies: 5Last Post: 04-27-2010, 10:35 PM -
[WTS] 32 Original MySQL Niche Content Databases On Sale (Industrial Data & Facts)
By immediate in forum ContentsReplies: 0Last Post: 12-22-2009, 09:51 PM


Reply With Quote

