Skip to content

don't use BSON.serialize for ds values in the browser #2

@timkuijsten

Description

@timkuijsten

IndexedDB supports JS objects as values in the IndexedDB via structured clone. Use this for better performance and debugging capabilities instead of serializing every document. Preliminary work has been done in the idbcloneval branch but this still yields some errors (possibly from level.js or abstract-leveldown or the custom patches to level.js Level/level-js#48).

WriteError: value cannot be an empty ArrayBuffer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions