btrask / stronglink

A searchable, syncable, content-addressable notetaking system
Other
1.04k stars 39 forks source link

Query result ordering when meta-files have multiple matching targets #55

Open btrask opened 9 years ago

btrask commented 9 years ago

Meta-files can only have a single target URI, but that address can theoretically match multiple files (as in semantic hashes (TBA) or hash collisions like with MD5). Right now we (mostly) guarantee that the target file is added before the meta-file is, which is necessary to ensure that query results don't change after the fact. However if a (duplicate) file is added that matches the URI of an existing meta-file, this ordering guarantee can be violated.

Possible options:

btrask commented 9 years ago

Note that we currently go through a lot of work in the filter system to support multiple files "per" meta-file. If we disallowed multiple targets, that could be vastly simplified.