A sessão de perguntas e respostas de hoje nos é oferecida por cortesia da SuperUser - uma subdivisão do Stack Exchange, um agrupamento de sites de perguntas e respostas conduzido pela comunidade.
A questão
Leitor de SuperUser Dan Dascalescu é curioso porque toda a pesquisa não é baseada em tabelas:
I’ve just discovered UltraSearch and was blown away by its file and folder search speed. It’s instantaneous. And doesn’t use any indexing service. It simply uses the NTFS Master File Table, which already stores all the filenames on the NTFS partition.
The question is, why isn’t this capability way more popular among file managers, and Windows Explorer Search (Win+F) to begin with?
Estamos bastante confiantes de que esta é a reação de cada usuário de computador ao encontrar pela primeira vez o quão incrivelmente rápida é a pesquisa baseada em tabela de arquivos. Então, por que não é construído em tudo?
A resposta
O colaborador do SuperUser, Mehrdad, explica por que a pesquisa de baixo nível nunca pegou:
Because of Security!
That’s the real reason. (And the only real reason, in my opinion - it’s not that hard to make a reader for major file systems, although it’s by no means easy; making a writer is the real challenge.)
A program like this bypasses the entire (file) system’s security infrastructure, so only an administrator (or someone else who has “Manage Volume” privileges) can actually run it.
So obviously, it wouldn’t work in many scenarios - and I don’t think Microsoft (or any other big company) would ever consider making a product like this and then encouraging users to run as administrators, because of the security ramifications.
It would be theoretically possible to make a system which runs in the background and filters out secured data, but in practice it would be a lot of work to get correct and without security holes for production.
By the way I haven’t used UltraSearch, but I’d written a very similar program myself a few years ago which I open-sourced just last month! Check it out if you’re interested.:)
Tem algo a acrescentar à explicação? Soe fora nos comentários. Quer ler mais respostas de outros usuários do Stack Exchange com experiência em tecnologia? Confira o tópico de discussão completo aqui.