hi, i have developed a shopping cart using php mysql, it has around 50 products in home page its taking too much time to load can anyone suggest how to optimise my database so that it takes less time
praveen_dusari
11
Posting Whiz in Training
Recommended Answers
Jump to PostA common problem we all experience when a noob to displaying huge databases. This is where you need to use pagination. Try Googling "php pagination" as i've rarely used it myself and the above link contains an example.
Jump to PostWell from experience, if you have a database that is longer than 80 rows then that is when pagination will be needed. The only thing that is stopping it from loading faster is the cpu speed. Weather php is only using a proportion of your cpu or the job exceeds …
Jump to Postis there a concept like compressing php page in server and sending it to browser?
I'm not sure if anybody has thought of that before but that's a great idea for sending large amounts of html data to the user. I suppose you would use php to encode the data …
All 10 Replies
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
praveen_dusari
11
Posting Whiz in Training
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
praveen_dusari
11
Posting Whiz in Training
cwarn23
387
Occupation: Genius
Team Colleague
Featured Poster
kireol
10
Posting Whiz
praveen_dusari
11
Posting Whiz in Training
kireol
10
Posting Whiz
praveen_dusari
11
Posting Whiz in Training
Josh Connerty
20
Unverified User
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.