Deletion of records and attachments

1 view
Skip to first unread message

Mandel

unread,
Jan 26, 2010, 3:44:12 AM1/26/10
to Desktop CouchDB
Hi *,

First of all I already asked this question on IRC but I did not get a
clear response (I guess everyone was on the developers week channel or
something, not big deal); currently when a record is removed a flag is
set to be true to indicate that it is indeed deleted, I do not
remember why correctly but it had something to do with Ubuntu One,
anyway I have also noticed that the attachments of deleted records are
kept, my question is the following: shouldn't those attachments be
deleted?

In my own little branch of desktopcouch I already have a patch to
remove this issue but I was wondering if it is an issue or a feature
that I do not understand.

Any helps is welcome,

Mandel

Rodrigo Moya

unread,
Jan 26, 2010, 5:04:59 AM1/26/10
to desktop...@googlegroups.com
it is a feature, so that we can recover deleted records, AFAIK. And
attachments are part of the deleted record, so I think they still should
be kept.

Of course, we might want some way for users to clean up their couchdb
db's, I guess, since people with lots of records might end up with
gigantic databases.

Manuel de la Peña

unread,
Jan 26, 2010, 5:20:53 AM1/26/10
to desktop...@googlegroups.com
That is actually my concern,. lets say I have around 3000 deleted records for contacts. In my app I allow the user to add an avatar to the record (I'm bad for names and good with faces :P) lets say that we are talking about an average size of  4 KB per 126x126 image (just an example) we have around 11 MB of unused data. I know 11MB sounds stupid, but it is unused data carried around and we are talking about small size images. Also, would that count as part of the space usage in ubuntu one?? and more importantly, does the size of my couchdb influence my data usage in ubuntuone? Depending on the answer I see two problems:

* Yes: Pain in the ass, do you really count the space of deleted data in my unbuntu one storage? (I'm trying to mimic an agree user)
* No: Whoa, does that mean that I just have to write a small script to sync as many files I want between my computers with the free 2GB accounts (16 year old kid with some python knowledge attaching all his porn and crossing fingers hoping couchdb can handle correctly his 80s porn which is hard to find in this days)

The first one as a user would really annoy me, I guess the second would me a pain for canonical ;)

Kr,

Manuel

2010/1/26 Rodrigo Moya <rodr...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Desktop CouchDB" group.
To post to this group, send email to desktop...@googlegroups.com.
To unsubscribe from this group, send email to desktop-couch...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/desktop-couchdb?hl=en.


Reply all
Reply to author
Forward
0 new messages