Jump to content

queue from sql update


kairno

Recommended Posts

Hi, i doubt the title is very explicit so here's what i want to do :

 

i have an SQL database {MySQL to be precise} and i want to update a queue in a page without constantly query-ing the database, i'm using ajax now, but the traffic on the server is killing me...

 

in short :

a new user visits my site

the event is transmitted to a perl script through an unix pipe

the perl script inserts data in my database

an ajax script checks the database every secont for new users and updates a queue line for some admins

 

as far as i can see it, the best way to acheve the updated list is to have the ajax script check the database on a certain event..but i have no idea on how to do this...

 

as you can see, executing a query every second for every logged admin is not the best solution.. but i don't know any other...

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.