By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,746 Members | 1,865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,746 IT Pros & Developers. It's quick & easy.

filesize() efficiency

P: n/a
Hi,

I'm constructing a page that contains a list of files that can be
downloaded - The file details (name, description, date) are stored on
a database (mySQL). When displaying the file details on HTML I use
filesize() to display the size of each file. Is this really
inefficient? Would it be better to store the size of the file on the
database instead. What's kind of performance difference are we talking
about.

Many thanks
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Gooseman" <da***@danworld.com> wrote in message
news:f9**************************@posting.google.c om...
Hi,

I'm constructing a page that contains a list of files that can be
downloaded - The file details (name, description, date) are stored on
a database (mySQL). When displaying the file details on HTML I use
filesize() to display the size of each file. Is this really
inefficient? Would it be better to store the size of the file on the
database instead. What's kind of performance difference are we talking
about.


Are the files scatter across different directories or are they all in the
same directory? For the latter case the overhead shouldn't be too large.

It makes sense anyway to store the file size in the database, to keep the
data self-contained (as opposed to having it be dependent on the
availability of these files).
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.