From ff5da06da823ac3a0bc7e89b35ed573255139b2d Mon Sep 17 00:00:00 2001 From: Soikk Date: Sun, 24 Jul 2022 22:18:31 +0200 Subject: Added ref count for files & tags. Refactored database.c. Removed tags.h but kept documentation. --- include/storage.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/storage.h') diff --git a/include/storage.h b/include/storage.h index 82ea55a..bef740a 100644 --- a/include/storage.h +++ b/include/storage.h @@ -3,6 +3,17 @@ #include "db.h" +/* (From tags.h) + tags are stored in a big table (or their hashes are) ordered + by alphabetical order + tags can have namespaces which are a special tag that starts + with a ':' + all tags in a namespace are located between two occurrences + of the namespace within the list, + e.g [":people", "sam hyde", "hitler", ":people"] + maybe namespaces use another hashing function to prevent + collisions because of the lack of space because of the ':' +*/ /* tags are stored in a big table (or their hashes are) ordered -- cgit v1.2.3