Re: Database Sync Question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




Which; SqlDependency?
Yeah.

And I want to minimize network traffic.

So why drag an entire table over? Keep the data at the server, and
just hold conversations with it - either to the database server
itself, or a web-service.

Well to keep the UI responsive my thought was to simply load the table
up front when the app starts. Then maybe save the table to disk when
it exits. Then the next time it starts, load from the saved file and
only pull down any changes from the DB which would likely be much
smaller than the whole table we had to download the first time.


If you really must do it your way, then a delete trigger that pumps
into a "deleted" table may be of use - you can use the identity in the
table to get just the updates you haven't seen, and can purge any
values older than your supported range - perhaps half an hour. Then in
the same way that you query for updates/inserts, just query for
deletes too.

Yeah thats an interesting idea.

It's not like I wouldn't rather query the DB everytime I needed
something. It would be easier I agree. Its just that the process is
very time consuming given the UI and the bandwidth available. So I was
just investigating other ideas. We're talking about maybe 4 tables w/
aprox 500 records in each. Not a massive DB. I felt caching it on the
client given their distance from the DB (over a WAN) might make sense.

.



Relevant Pages

  • Re: Database Sync Question
    ... So why drag an entire table over? ... just hold conversations with it - either to the database server ... table to get just the updates you haven't seen, ... the same way that you query for updates/inserts, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Mupltple pages queries
    ... all the books in Amazon, and such a book goes to the page 4 of the ... If you you want you to design a website using a database server you can ... design a query in the way that it returns answers in multiple pages. ... Now assumed that website is designed. ...
    (comp.databases.oracle.server)
  • Threading.Lock() question
    ... I have a multithreaded application that spawns threads which query a database server. ... During stress test I encountered some threads failing due "lost connection errors" and sometimes the actual script itself dies due to a "Segmentation Fault". ...
    (comp.lang.python)
  • Re: Give me solution
    ... My database server is a minicomputer with class P3, more, more weak than ... If i make a query for example for 1000 records ... And try it with only the 200 normal fields but without the ... one image field. ...
    (borland.public.delphi.database.ado)
  • Re: "I was in my reporter mode"
    ... >> yeah and why does Michelle Wie need to follow the rules of golf ... Do the rules invite *anyone* to query a ...
    (rec.sport.golf)