CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 dirty data

Print topic Send  topic

Author Message
aopenshaw

Posts: 1
Posted: 08/16/2010, 12:48 PM

I have a grid that references a MySQL database. The page refreshes every 120 sec in order for users to see the latest data. My question is if a user submits an update during this interval how can I alert another user that the data in his view is not current?
View profile  Send private message
datadoit
Posted: 08/16/2010, 1:10 PM

Technically it's feasible by creating some log fields for your data
table, such as:

insert_id
insert_datetime
update_id
update_datetime

Then query these fields as necessary and check against a session
variable that's holding the user's time of entry. AJAX would be the
preferred behind-the-scene method of doing the query every x seconds.

However, depending on the number of simultaneous users you expect in
this grid or page at any given time, and the frequency that you would
invoke the AJAX, you could be looking at a tremendous demand on your
processors, bandwidth, database locks and connections, etc.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.