Re: Question on data loading
| From: | Miles Thompson | Date: | Tue, 09 Mar 2004 00:17:58 +0000 |
| Subject: | Re: Question on data loading | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179847@lists.php.net to get a copy of this message | ||
It's the old story ....
Normalize your tables
Use indexes on commonly called fields
Fetch items only as needed, within reason.
Remember that the web is stateless, so when you zero in for more data you will be refreshing the page from the server.
One thousand items is very few for a database, try humdreds of thousands or millions.
Regards - Miles
At 10:14 PM 3/8/2004 +0100, marc serra wrote:
Hi, I'm currently designing a website with a catalogue containing lots of products (more than 1000). To reduce response time to database, I want to know if there is a solution like loading all objects in memory for all users like a servlet could do in java and after giving to each people connected to website a way of accessing this "shared memory" ? I'm interested in any solution, thx Marc.