https://bugs.kde.org/show_bug.cgi?id=528422

            Bug ID: 528422
           Summary: Baloo index too large
    Classification: Frameworks and Libraries
           Product: frameworks-baloo
      Version First 6.31.0
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Engine
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

I noticed that on my desktop the Baloo index used about 100GB, which is
particularly conspicuous since the entire partition is only filled by 500GB of
data, and not all folders are indexed.

I could find two sources of this problem:
1. A lot of the data are text files containing scientific results, mostly
thousand of lines of numbers. If baloo is trying to index all of these, it's
practically going to form an index of all decimal representation of
floating-point numbers.
2. Because of btrfs compression, there is actually 620GB of data, still not
enough to justify the index size.

Is it a problem?
I would argue that usage of KDE in the scientific community is sufficiently
large that this is not an issue to completely ignore.

Because one may want to index a number from time to time, i.e. phone numbers, I
don't think number should be skipped altogether from the index. Also, this
problem could not be limited to numbers, i.e. large files of hashes, or other
text files with pseudo-random content may cause troubles. There are also binary
formats of data, which may contains lots of text, like databases.

To make matters worst, scientific files are often very non-standard. I.e. it is
unpractical to just skip a certain suffix, although it may work on a
case-by-case basis.

Possible solutions, without completely disabling file content indexing: 
1. introduce a feature to avoid indexing words that match a list of regular
expressions, a preset of regexps could be provided to skip floating-point
numbers, hashes, words too long (maybe this is already done?), etc.
2. only index words that match a dictionary search in the system locales, plus
words that begin with a capital. Will probably break for non-western scripts
3. detect (somehow) if a file contains "raw data", in this case only index
comment lines, i.e. lines that start with #, ";", "!", "//", etc.

KDE Plasma Version: 6.7.5
KDE Frameworks Version: 6.31.0
Qt Version: 6.11.2
Fedora 44 KDE edition

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to