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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.