dbTalk Databases Forums  

Delta compression of query results

comp.databases comp.databases


Discuss Delta compression of query results in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Russell Wallace
 
Posts: n/a

Default Delta compression of query results - 02-14-2007 , 09:29 AM






Suppose a database server - say MySQL, though I'd be interested in
answers to my question for other systems too - and client are separated
by a low bandwidth link such as DSL, and the client repeatedly issues a
query for, say, a current product list.

Suppose the product list is large, but only a handful of entries have
typically changed between queries. It would be nice if only the changes
from last query to current one could be sent, saving bandwidth.

Is there any way to do this?

Thanks,

--
"Always look on the bright side of life."
To reply by email, replace no.spam with my last name.

Reply With Quote
  #2  
Old   
eKo1
 
Posts: n/a

Default Re: Delta compression of query results - 02-14-2007 , 10:05 AM






Quote:
Suppose a database server - say MySQL, though I'd be interested in
answers to my question for other systems too - and client are separated
by a low bandwidth link such as DSL, and the client repeatedly issues a
query for, say, a current product list.

Suppose the product list is large, but only a handful of entries have
typically changed between queries. It would be nice if only the changes
from last query to current one could be sent, saving bandwidth.

Is there any way to do this?
Yes there is but you are going to have to keep track of the items in
the list that have not changed since the last query. More
specifically, you will need to keep track of the time the last query
was made and also the time an item in the product list was last
updated. The client would have to cache the results of the query as
well.




Reply With Quote
  #3  
Old   
Ed Prochak
 
Posts: n/a

Default Re: Delta compression of query results - 02-14-2007 , 10:12 AM



On Feb 14, 10:29 am, Russell Wallace <russell.no.s... (AT) gmail (DOT) com>
wrote:
Quote:
Suppose a database server - say MySQL, though I'd be interested in
answers to my question for other systems too - and client are separated
by a low bandwidth link such as DSL, and the client repeatedly issues a
query for, say, a current product list.

Suppose the product list is large, but only a handful of entries have
typically changed between queries. It would be nice if only the changes
from last query to current one could be sent, saving bandwidth.

Is there any way to do this?

Thanks,

--
"Always look on the bright side of life."
To reply by email, replace no.spam with my last name.
There's always a way. The question is at what cost.

You could reprogram the client side to buffer entries and change the
query to only request the changes (maybe via a timestamped
LAST_UPDATED/EFFECTIVE attribute). Only the client knows what it has,
so the burden is on that side.

So the costs:
DB changes for the list
Server changes (need to set that timestamp) in the source list
client changes (need to select using that timestamp)

HTH
ed





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.