Skip to content

Integer/Blob CacheKey Support? #21

@goodones-mac

Description

@goodones-mac

I'm curious why there isn't an option for int cache key support? From what I've inspected your using sqlite as a basic key value store. We've found that string keys of uuids use a lot of storage space relative to their blob equivalents. And if you want to use uuids as the basis of your key system, you could store them directly as 128bit blob objects in the sql database and save a lot of space.

We did a test for our own db recently and it reduced our DB 4x in size by replacing our string UUID keys to int / blob equivalents.

It would be really powerful if we would have an Int option for cacheKeys and/or an optimized version for UUIDs. FileStore / JSONStore could use the string representation, but sqllite and maybe others would use the int / uuid representations directly. This would then bubble up to Boutique

https://stackoverflow.com/questions/11337324/how-to-efficient-insert-and-fetch-uuid-in-core-data/11337522#11337522

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