Welcome, Guest. Please Login or Register.
May 13, 2025, 06:39:15 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Modifications to the existing Attachments Mod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Modifications to the existing Attachments Mod  (Read 532 times)
flaco
Noobie
*
Posts: 7


I'm a llama!

Modifications to the existing Attachments Mod
« on: May 24, 2003, 02:50:44 PM »
Reply with quote

The existing mod is great, but there is one thing that needs to be considered for the future.

All of the attachments are dumped into one folder.  There should be an archiving option, or on the fly new directories made.

For instance, 'Archive Attachments' would make an auto incrementing folder name, such as 'archive0001'.   All attachments in the attachments folder would be moved into this folder and the links updated (For existing messages pointing to those attachments).

I used to do this on my YaBB cgi board.   Simply doing a search and replace on all the files in the Messages folder with an updated URL.

The performance hit of having thousands and thousands of files in one folder (plus the housekeeping issue) eventually becomes a massive problem on heavy usage boards.

I was impressed to see YaBBse didn't duplicate the square wheel by attempting to put attachments into MySQL.  This was the number one killer of performance on vBulletin (aside from numerous instances are kludge).   Try running a board with 4GB of attachments all crammed into a table, that is also SELECT'd every time someone enters the board.



« Last Edit: May 24, 2003, 02:54:29 PM by flaco » Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Modifications to the existing Attachments Mod « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.064 seconds with 21 queries.