Memory Space Calculation?

Posted by korsakov 
Memory Space Calculation?
April 19, 2011 01:49PM
I am wondering whether anybody has an idea how to calculate the used memory space for posts and attachments under a folder.
Re: Memory Space Calculation?
April 19, 2011 02:03PM
Define "memory" (not that a definition would result in an answer, but it's not really clear what you're after here).


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Memory Space Calculation?
April 19, 2011 02:09PM
Memory space or the amount of storage needed to host content under a folder. How would you do it? Thank you.
Re: Memory Space Calculation?
April 19, 2011 03:16PM
Memory and storage are two totally different things and there's no calculation "under a folder". Every data in phorum is in the database and you could check your average row size there, for example in phpMyAdmin.


Thomas Seifert
Re: Memory Space Calculation?
April 19, 2011 03:23PM
Thanks, Thomas. I already found a solution regarding the required storage space for files. I can work with "phorum_db_get_user_filesize_total". I am only wondering what will happen to the files of users who might get removed in the future. Will their files removed, as well, or will they remain in the database?
Re: Memory Space Calculation?
April 19, 2011 04:01PM
The files remain in the database.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Memory Space Calculation?
April 19, 2011 04:10PM
Could an option be considered in the future to remove these while purging stale files in Admin?

I could solve my task with 10 lines of code. Really, Phorum rocks!
Re: Memory Space Calculation?
April 19, 2011 04:22PM
Anything can be considered, but since they aren't stale files, we won't build that into the purging code.

You could prune the messages for the user that you deleted. That will delete the files that are attached to them as well. Be sure to do this before deleting the user, because afterwards the messages will be switched to anonymous authors.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Memory Space Calculation?
April 19, 2011 04:42PM
Thanks for your suggestion, Maurice!
Your IP address, domain or ISP has been blocked. Please contact the forum administrators.
Sorry, only registered users may post in this forum.

Click here to login