BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] File Systems vs.Databases Was: Re: SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- Subject: [Discuss] File Systems vs.Databases Was: Re: SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: dsr at randomstring.org (Dan Ritter)
- Date: Fri, 23 Jan 2026 09:50:40 -0500
- In-reply-to: <05a7de7c-0e04-480c-afa9-1c725b10a247@borg.org>
- References: <c40fd68e-e540-471c-a253-7ae04dedaa65@borg.org> <20260119080150.7891b97d.Richard.Pieri@gmail.com> <56dcf563-62a6-4c16-aa84-ed825818def7@borg.org> <987cd7dc-096a-4a4c-be90-20e4847cdb17@bclug.ca> <20260120162647.1d90d2d7@mydesk.domain.cxm> <32eaffac-42e5-4af7-9fae-8a0514d9b97d@bclug.ca> <20260120215709.4cd9c226.Richard.Pieri@gmail.com> <96abce57-0162-4309-aa2e-a508b824c2c7@bclug.ca> <2e59e96928b3b838ed74a020791d70d4.squirrel@mail.mohawksoft.com> <05a7de7c-0e04-480c-afa9-1c725b10a247@borg.org>
Kent Borg wrote: > They are different. A common case is to use them together. Store the > metadata in a database (title, genre, date, running time, director, actors, > screenwriter, MPEG path). And index most of that metadata to make it easy to > search for things. But the actually fundamental data itself, the stuff we > really care about (in this example MPEG data) is probably not going to be > stored in the database, but will be opaque blobs---files--hashed into a > directory path, stored in a file system. > > Use the database for the stuff it is good at, use the file system for the > stuff it is good at. Appreciate the difference. Yup. This is a very common and useful pattern. Examples: notmuch, mairix, and maildir-utils all do about the same job: generate an indexed database of selected mail headers, then make them available for searching. The output is a list of maildir message paths, often symlinked into a temporary maildir so you can act on it as though it were a new folder full of the messages you just selected. owntone is a music server which builds an indexed database of metadata about your music files, then gives you a dynamically generated webpage for your searches, plus player and control tools. Files remain where they are. jellyfin does the same for music, video, and audiobooks. ubooquity does the same for ebooks and comic books. plocate (successor to mlocate, locate, etc...) builds a database of every file in your system, so that you can query it when you don't know where a file is in the tree. The primary advantage of all of these systems is that when something better comes along, re-indexing the files with the new system is *much easier* than trying to export and import all the data from one database to another. And, of course, they all get a free layer of cross-compatibility for dealing with the actual data - moves, name changes, copies, backups, deletions. -dsr-
- Follow-Ups:
- [Discuss] File Systems vs.Databases Was: Re: SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: slitt at troubleshooters.com (Steve Litt)
- [Discuss] File Systems vs.Databases Was: Re: SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: kentborg at borg.org (Kent Borg)
- [Discuss] File Systems vs.Databases Was: Re: SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- References:
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: kentborg at borg.org (Kent Borg)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: kentborg at borg.org (Kent Borg)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: ron at bclug.ca (Ron)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: slitt at troubleshooters.com (Steve Litt)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: ron at bclug.ca (Ron)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: ron at bclug.ca (Ron)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: markw at mohawksoft.com (markw at mohawksoft.com)
- [Discuss] File Systems vs.Databases Was: Re: SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- From: kentborg at borg.org (Kent Borg)
- [Discuss] SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- Prev by Date: [Discuss] File Systems vs.Databases Was: Re: SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- Next by Date: [Discuss] File Systems vs.Databases Was: Re: SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- Previous by thread: [Discuss] File Systems vs.Databases Was: Re: SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- Next by thread: [Discuss] File Systems vs.Databases Was: Re: SSH options (was Future of X11 (was Trying to connect to internet in Debian))
- Index(es):
