Skip to content

settings cacheSize does not change cache size #136

@Adam-Michalski

Description

@Adam-Michalski

What unit is in cacheSize?

let db = TAFFY();
db.settings({cacheSize:10000});
for (let i = 0; i < data.length; i++) {
db.insert(data[i]);
}

where data.length = 10000

Failed to execute 'setItem' on 'Storage': Setting the value of 'taffy_database' exceeded the quota.

What is wrong in this part of code?

It doesn't work either if I type this.db.store(name) before settings where name = 'database'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions