Skip to content

Deduplicate and optimize file index #38

Description

@termermc

Right now, if you create a share of /mnt/cat_videos on two different servers, you will end up having two different indexes for the same folder, one per-share.

I propose that indexes be keyed by a short hash of their path on disk + the index settings. That way, if two shares with the same indeex settings point to /mnt/cat_videos, the directory will only be indexed once. But if there are different settings (like symlinks being followed on one but not the other), they will get their own indexes to ensure that file privacy is preserved.

I was also thinking of just keying indexes by their files and then using a prefix search, but I don't think that could be used if we have different shares with different index settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions