Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert _attachments to stubs #2

Open
jhs opened this issue Mar 17, 2012 · 0 comments
Open

Convert _attachments to stubs #2

jhs opened this issue Mar 17, 2012 · 0 comments

Comments

@jhs
Copy link
Contributor

jhs commented Mar 17, 2012

When a transaction is done, Txn returns the new document to the callback, unmodified. The callback basically has the exact document that is in Couch.

The problem is, there might be enormous inline attachments that would be better off converted to stubs. If you naively use the passed doc value and send it back to couch, that will work, but you will be re-sending the inline attachments again.

So a nice option would be {"convert_stubs":true} telling Txn to convert inline attachments to the stub value before passing it to the user's callback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant