summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-05-01 13:34:33 -0300
committerdrebs <drebs@leap.se>2016-05-01 14:25:23 -0300
commit856e302be8c9fbf1f098001d29c3ff1ac447cdcf (patch)
tree3585990c7e83f59950074f0b09e71c6f22592754 /scripts
parent96e27b6d258562d0e83696cefb1d11c60a31acf2 (diff)
[bug] remove doc content conversion to unicode
Theoretically (until now), Soledad inherits from U1DB the behaviour of only accepting valid JSON for documents contents. JSON documents only allow for unicode strings. Despite that, until now we had implemented lossy convertion to unicode to avoid encoding errors when dumping/loading JSON content. This allowed for API users to pass non-unicode to Soledad, but caused the application to take more time because of conversion. There were 2 problem with this: (1) conversion may take a long time and a lot of memory when convertin large payloads; and (2) conversion was being made before deferring to the adbapi, and this was blocking the reactor. This commit completelly removes the conversion to unicode, thus leaving the responsibility of unicode conversion to users of the Soledad API.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions