I think CF just does an operating system function call to retrieve the directory listing, as would any other language. Performance should be fine unless you've got thousands of files in the directory. If you anticipate having quite a few files, use some type of convention for creating directories or subdirectories for storing the files. It will depend on the application how you'd break it down.
Jim ----- Original Message ----- From: "Cedric Villat" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, March 05, 2003 6:45 PM Subject: CFDirectory overhead? > Is it safe to use CFDirectory? Does it have any performance issues that I > need to know about? I'm going to use it to search for certain files. For > example, I want to save all attachments from an email as > #email_id#_#filename#. If I did a <cfdirectory> listing searching for all > attachments that match #email_id# does this have a huge overhead? Or would > it be better to store these attachments in a database? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

