 # having to apply hundreds of patches when opening a string, and saves
 # space.   (Of course, having the complete history could also be
 # interesting...)
-DB_PATCH_SQUASH_THRESH = 50
+DB_PATCH_SQUASH_THRESH = 20
 
 async    = require('async')
 {EventEmitter} = require('events')

        opts = defaults opts,
            to_delete : required
            string_id : required
            last_sync    : required
            timestamp : required
            cb        : undefined
        @dbg("_squash_patches", misc.to_json(opts))
        async.series([
            (cb) =>
                # write big new patch

        syncstring_db = new StringsDB(database)
        cb?()


exports.get_syncstring_db = () ->
    return syncstring_db
