Jump to content

Which is faster


Anim9or

Recommended Posts

Hi, me again

Sorry to bother you with a fairly trivial question but I have a website that's very reliant on loading dozens of variables from a txt document into an array.  It is starting to run too slow.  I was just wondering if it would be quicker to use MySQL.  Until now I have been avoiding it but if it will in fact save time to load values from a database instead of text file, I will.  Thank you! :D

Link to comment
Share on other sites

It really depends on the specs of the sql server, the strain already on the sql server, etc. Generally, converting resource intensive sql queries into being handled by php/text files helps greatly, but the contrary, not necessarily.. It also depends on the size of the query you wish to create, E.G. if you plan to use mysql's RAND() function, create a virtual table, etc. Also depends on the frequency of the query, and how resource intensive it is.

 

Its worth converting.. but this is one of those cases where you simply need to test it to be able to know the output.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.