Jump to content

Is this a good idea?


Azaz

Recommended Posts

I was wondering if this is faster or better performance.

 

Each time a user submit's a post on my forum I will make it +1 the .txt file on my main server directory called test.txt, then I can just call that on my main forum index to show the amount of total posts our board has, instead of using mysql queries to sum all of it from the tables...

 

good idea? or am i retarded?

Link to comment
https://forums.phpfreaks.com/topic/209082-is-this-a-good-idea/
Share on other sites

It's better to just use MySQL for this kind of thing. It's no quicker writing to a text file. It also makes using this data far easier when it's all together and can be easily queried.

 

Yea but are you sure cause IW ould have to sum 3tables  and sum the posts value for each one, are u sure

Link to comment
https://forums.phpfreaks.com/topic/209082-is-this-a-good-idea/#findComment-1092337
Share on other sites

Archived

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

×
×
  • Create New...

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.