On 9/1/12 18:11 , Branimir Sesar wrote:
> Dear LSD users,
>
> I have found something that is a good feature of LSD for me, but may be
> an unintended feature or even a bug.
>
...[snip]...
>
> The rows with primary_key 1 and 2 appear in both snapshots, but only the
> rows from the latest snapshot are returned. This "feature" is useful to
> me because now I do not need to rebuild some static table from scratch
> every time I add more observations to my detection tables.
>
Hi Brani,
If I understand correctly what you're describing, this *is* a feature.
The contents of "snapshot/XXXXX" directory is _not_ the whole (logical)
snapshot -- it only contains the rows (actually, cells) that were
updated since the last snapshot. To get the full logical snapshot, you
have to make a union with the data files in all older snapshots. This is
what lets LSD be space-efficient: files of cells that haven't changed
are shared by all logical snapshots that include them.
Cheers,
--
Mario Juric,
Data Mgmt. Project Scientist, Large Synoptic Survey Telescope
Web :
http://www.cfa.harvard.edu/~mjuric/
Phone :
+1 617 744 9003 PGP: ~mjuric/crypto/public.key