You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Couchbase Mobile
I'm trying to replace hi-res photo attachments with low-res previews to reduce storage on-device after the hi-res photo has been synced to the gateway sever.
As I understand it, the only way to remove the orphaned attachment is to call [CBLDatabase compact]. Correct?
Jens Alfke
unread,
Oct 20, 2015, 7:47:32 PM10/20/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
As I understand it, the only way to remove the orphaned attachment is to call [CBLDatabase compact]. Correct?
Compact will delete attachment files that are no longer used by any revision. So before the compact you’d need to purge the document (or just the revision) that contains the attachment.