Jump to content

Archived

This topic is now archived and is closed to further replies.

Zipp425

File access speed versus database access speed

Recommended Posts

I guess that would depend on how many queries you are going to be preforming. The only thing that I can suggest is to use micro time to test the speed of both and then make a decision based on the time.

Here is an example.

[code=php:0]
$start = microtime(true);
//some code here

$end = microtime(true);
$time = $start - $end;
[/code]

hope that helps,
Tom
Tom

Share this post


Link to post
Share on other sites
Alright, Thanks tom, that actually helps alot. I didnt know there was a micro time function... haha.

Share this post


Link to post
Share on other sites
Files are always faster then a database but the programming for files is a lot more work so most users use a database.

Post your thorts on the microtime help you got.

Share this post


Link to post
Share on other sites

×

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.