why search so slow?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

why search so slow?

Postby NimS on Mon Apr 30, 2012 7:39 am

Hiya,

Why is it that if I search for a filename in 100G, it takes up to 10s of seconds and if I search for content it can take minutes. Yet if I search on google it searches trillions of gigs in miliseconds.

Is there something I can learn and implement from what google does? Or would it ultimately just be faster to upload all my files to the net and then get google to search them in a split second? :)

It doesn't make sense how this works! Any clues?
NimS
Level 1
Level 1
 
Posts: 13
Joined: Fri Jan 27, 2012 6:33 pm

Linux Mint is funded by ads and donations.
 

Re: why search so slow?

Postby xenopeek on Mon Apr 30, 2012 8:20 am

What tool are you using to search file content?

Searching for file names uses an indexed database, which is fast. Searching file content, is not indexed and needs to go through each file you search entirely. Assuming you have a normal harddisk, this will be tediously slow. Google has huge data centers, each of which costs multiple hundred million USD. I guess you don't have that at home either :wink: Google also uses indexed databases (it doesn't search the entire web real-time; the Google bot travels the web and updates the database, but you only search the database). They use highly optimized databases
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10462
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: why search so slow?

Postby NimS on Mon Apr 30, 2012 6:53 pm

yeah, I guess my question really was about indexing.

Being an escapee from osx (not quite complete -- I still need to do video and motion graphics work on my mac) I do miss the content search the spotlight indexing provided, relatively quickly.

I was being a little tongue in cheek about google, though data recovery (or search or whatever it would be called) seems to be an increasingly integral part of the ever larger amounts of personal data. I am surprised content indexing is not becoming part of every file system.

Oh, and I'm using the search in nautilus. Is there a better, faster way?

thanks!
NimS
Level 1
Level 1
 
Posts: 13
Joined: Fri Jan 27, 2012 6:33 pm

Re: why search so slow?

Postby xenopeek on Tue May 01, 2012 10:35 am

If you frequently are searching through large files, you may want to install a desktop search engine. One that indexes the content of the files so you can search faster.

Recoll is reportedly very good: http://www.lesbonscomptes.com/recoll/index.html

Some alternatives to Recoll: http://alternativeto.net/software/recol ... form=linux
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10462
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: why search so slow?

Postby NimS on Tue May 01, 2012 7:13 pm

cool, thanks Vincent, I'll check them out.

And thanks for your ever-present and generous advice!
NimS
Level 1
Level 1
 
Posts: 13
Joined: Fri Jan 27, 2012 6:33 pm


Return to Newbie Questions

Who is online

Users browsing this forum: Google [Bot] and 25 guests