🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #341

Re: Database synchronization

#341
From: Kevin Dean [TeamB]
Date: Fri, 25 Aug 2006 17:30
32 lines
2529 bytes
Michael Aresti wrote:

>My application is working with MySQL Server. Using it I can modify every 
>row in some special schema in database. Suppose that my program is running 
>and I am only viewing query response (for example "select * from 
>employees") and somebody else using MySQL Query Browser is making some 
>changes in that table (deleting few rows).
>
>My question is: is there enabled any kind of synchronization that I can 
>use in my program (if something is changing in tables in database it will 
>inform my program about it). I want that using my program I will view 
>always the most actual results.

No.  The work others do is isolated from you until you requery the 
database.  Some databases have callback APIs to inform you of record 
changes (or you can build them yourself on a table-by-table basis if you 
have to) but they're tricky to implement.  If you have a table that is 
constantly changing for which you have to see the latest changes, the best 
bet is usually just to refresh the dataset on some kind of timer.

-- 
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <xn0eqe6rme9eck000-kdean@www.teamb.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!news.germany.com!news.buerger.net!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <44ef0d78$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,380c435f48cb225
X-Google-Attributes: gid1073da,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Subject: Re: Database synchronization
Newsgroups: borland.public.jbuilder.database
References: <44ef0d78$1@newsgroups.borland.com>
Organization: Dolphin Data Development Ltd.
User-Agent: XanaNews/1.18.1.3
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobrp]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Message-ID: <xn0eqe6rme9eck000-kdean@www.teamb.com>
X-Ref: newsgroups.borland.com ~XNS:00000606
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-2; format=flowed
NNTP-Posting-Host: 70.27.198.51
Date: 25 Aug 2006 10:30:04 -0700
X-Trace: newsgroups.borland.com 1156527004 70.27.198.51 (25 Aug 2006 10:30:04 -0700)
Lines: 32
X-Authenticated-User: kdean
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!news.germany.com!news.buerger.net!news.code-werk.net!open-news-network.org!news.soft-gems.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail