Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Paul Mietz Egli
    @pegli
    I'm working on a new release of the module based on the Couchbase Lite 1.0.4 libraries. The Android/Java download links for those libraries are currently broken, however. I've filed couchbase/couchbase-lite-java-core#548 and will release once I can get an official set of JARs from Couchbase.
    Paul Mietz Egli
    @pegli
    There's a new release of TiTouchDB available: https://github.com/pegli/ti_touchdb/releases/tag/1.2.1
    tiulkin
    @tiulkin
    @pegli Hi, Paul. Is there any chance for forestdb to be embedded in this module?
    p.s. Thank you very much for doing this. You even can't imagine how useful it is for us.
    tiulkin
    @tiulkin
    Take my request back. I've managed to build it from source and my experiments have shown that the new sqlite in 1.1 release gives up to 5 times better performance in my app. It is more than enough for me and with this speed sqlite looks better because forestdb stores attachments in one file, and I'm sure there will be performance issues during compaction process because of this.
    Paul Mietz Egli
    @pegli
    Sorry for the delayed response -- it was a busy weekend. I'm working on a new release built with the 1.1 build of Couchbase Mobile now. My plan is to keep SQLite as the default storage engine but allow people to configure the module to use ForestDB if they prefer. I expect that the slight increase in module size from having both engines compiled in is a fair tradeoff for the flexibility.
    tiulkin
    @tiulkin
    Great! Thank you very much.
    tiulkin
    @tiulkin

    Hello again :-).
    I've run out a major memory leak with attachments in cblite 1.1, and since you are working on the next release, I think you are should be aware of it.
    The problem is that when I get an attachment (no matter how - through the url or through the getAttachment method), it doubles in the memory and stays in it forever.
    Moreover, it happens both with the sqlite and the forestdb engines.
    Maybe the couse is that I did something wrong (I don't experienced enough with objC to know this for sure), but I just replaced ios/vendor/couchbase-lite-ios/ with the new one from cblite's repository. And the code is the same that works without problems with the current release.

    here the screen from the instruments:
    http://megalenta.ru/the_problem.png

    You can see the pairs of allocations of the same size. When I get an attachment again, the new couple of the alocations appears with almost the same time and stays in memory forever.

    tiulkin
    @tiulkin
    *"run into" instead of "run out" of course
    Paul Mietz Egli
    @pegli
    Thanks for letting me know about this issue. Replacing the code in the vendor directory will work fine, provided you do a clean build afterward. Just to confirm, this doesn't happen when the module is built with CBL 1.0.2, correct?
    tiulkin
    @tiulkin
    Yes, correct. With previous version of the CBL in the trace I don't see such objects with "_NSReadBytesFromFileWith..." at all.
    tiulkin
    @tiulkin
    Hi, Paul.
    Did you too come across the problem I mentioned above? If so, did you find a workaround?
    I wouldn't disturb you, but I'm about to release my app and I have to decide wich version of CBL it will use.