Jump to content

A Good Idea....?


adam84

Recommended Posts

I have a site where users are able to internally send mail to each other. Would it be considered a good idea to use ajax to check and see if the user have any new mail. As of now, every time the user loads a new page, I check for any new mail and if there is I display “New Mail”. But if I created a function, that would check every x amount of seconds, would that be a waste of resources, a waste of querying the database?

 

I really like the idea of using ajax to do that, but again not all ideas are efficient. I much rather code it efficiently, so the site runs much quicker, than a cool idea that makes the site run slow.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/115460-a-good-idea/
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.