Re: mlocate - what is it good for?

2019-05-28 Thread Sebastien Bacher
Hey Steve,

Le 24/05/2019 à 00:33, Steve Langasek a écrit :
>> Takes over 30 seconds (on a machine which not doing any other work)
>> where mlocate takes around 1 second on the same machine... and I do
>> personally find 30 seconds to be too long.
> I agree that 30 seconds is too long, but as a user of find I find this usage
> surprising, why would you be searching the whole root disk for the file?

I just used the same example than Julian gave so we would compare the
same things (but picked a file that I know existed on my disk), I agree
that the command/example doesn't make much sense.

> Anyway, agreed that 30s is too long.  Would you be annoyed if the solution
> to that 30s being too long was "get tired of waiting, run 'locate', get told
> it's not installed, apt install mlocate, run 'locate' again"?

No, I think it would be fine. Locate isn't going to be useful on "throw
away" installations/VMs since on a fresh install the index is not going
to be there, and if you have an installed machine you use then
installing the machine is a one action easy action.

> indexers on your desktop system - both tracker and mlocate.  It looks like
> nautilus currently depends on tracker, so I'm not sure how one would
> uninstall it and usefully fall back to the mlocate backend anyway, but at
> most I'd say this should be expressed as 'Depends: tracker | mlocate' in
> nautilus, and not have mlocate kept around on the system updating its
> database daily just in case a user removes tracker.

Right, GNOME sort of forced our hands there since several features in
nautilus now rely on tracker so yes I agree with you, our default
Desktop indexer is tracker and it's probably good enough for most users.
Those who need mlocate can go an install it from the archive, we
probably don't need it pre-installed on the desktop image.


Cheers,
Sebastien Bacher


-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Re: mlocate - what is it good for?

2019-05-23 Thread Sebastien Bacher
Le 22/05/2019 à 21:47, Julian Andres Klode a écrit :
> containing about 1435134 files. mlocate foo takes 1s, find / -mount
> -name '*foo*' takes about 7-9 secs, or 19 seconds with all mount points 
> (but there is a davfs mount of an internet server, so things might be

Well here on a few years old 80GB intel ssd doing

$ time find / -mount -name disco-desktop-amd64.iso

Takes over 30 seconds (on a machine which not doing any other work)
where mlocate takes around 1 second on the same machine... and I do
personally find 30 seconds to be too long.

Note that nautilus has a mlocate search provider which we have been
using by default until bionic, to avoid depending on tracker. Now we use
tracker so it's less important but some users do uninstall tracker
because they don't like having an indexer (and it still does have some
bugs) so it's nice to have the UI still responsive for those users.

Cheers,
Sebastien Bacher




-- 
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam