joosh Posted August 6, 2009 Share Posted August 6, 2009 I'm redesigning a website with a number of organized pictures. What method would be faster for medium amount of traffic? How much server load is used by scandir? And multiple scandirs within while/foreach loops? Just trying to determine which would be faster and better for the server load. Thanks, Josh Quote Link to comment Share on other sites More sharing options...
roopurt18 Posted August 6, 2009 Share Posted August 6, 2009 Nobody here knows what medium traffic means, so you'll have to be more specific. Nobody here can really tell you which is faster either, since it depends on many factors. The size and types of hard drives and the MySQL configuration can all have big impacts on performance. None of us know what your hardware or software configurations are. Nobody here knows how many pictures you're expecting to deal with? 5 pictures? 10? 4 million? That too makes a big difference. Anyways, typically the answer to this question is the database is better. That's why we invented them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.