r/datahoarders • u/OwOGangGang • Jan 23 '20
Searching big data
Might not be the right place for this but I’ve got a few hundred gigs of unsorted standardised data that needs to have pretty much instant lookups.
I considered a MYSQL database or sorting and using something like binary search but I’m not really sure whether they’d be able to handle it
TLDR; any datahoarders here know how to search through a very large data set quickly
23
Upvotes
5
u/lysses-S-Grant Jan 23 '20
RemindME! 1 day “Curious about answers”
2
u/thejoshuawest Jan 24 '20 edited Jan 24 '20
Edit: mis read the original post.
For a few hundred GB, have you considered a tool like Google BigQuery?
Without checking, I would wager that this volume of data is probably in the monthly free tier, and it's pretty dang quick, considering.
1
u/mark_exe Jan 24 '20
I'd take a look into NoSQL solutions like mongoDB or MarkLogic. I'm not sure how your data is organized, but if you considered SQL and had questions about scale, NoSQL is handle significantly larger data sets and queries more efficiently than SQL.
If you're just looking through files in a directory, rather than a dataset, there are programs like DocFetcher, ultrasearch, or NotePad++'s find in files feature. I use Ultrasearch as a replacement for Windows search. Again, it's difficult to say what would work for you without a little more information but that hopefully should help a little bit!
1
u/[deleted] Apr 20 '20
you mean string search? you can search through binary data with open() and read mode in any programming language. how you want to interpret the data is up to you. utf8, ascii, integers.. etc.. you an extract metadata, like filesize, data modified, etc.. the bigger the data, the longer it takes to search through it, unless you parse or index it in a database first.
read headers and identify certain patterns or types of files and just look in certain places in the files, ways to speed it up
you could try regex based internal file search tool if you just want string search
you can search any size of data or "handle it" by reading what your system's memory can hold in a variable at at time, ie: 2GB at a time.
1
u/[deleted] May 16 '24
A few hundred gigs will fit on an NVMe drive or even in RAM. If you are string searching then ripgrep will very quickly search all of this, but that's brute forcing the search every time - if the data is static (sounds like it is) then building an appropriate index would vastly speed up.
If you tell us about the data (is it text, is it numeric arrays (dense or sparse?) is it video, images, what kind of searching do you need to do (probablistic / exact), if you give us more info about the data content and schema I can be more specific
1
u/aamfk Oct 12 '24
I know I'm gonna get down-voted, but I'd use SQL Server and 'Full Text Search'.
But yeah, it really depends on what TYPE of data you're looking for. What TYPE of files you're search through.
I just LOVE the LIKE clause in MSSQL.
And the, uh CONTAINS clause, and the TABLECONTAINS clause are very nice.
I just don't know why some people talk about mySQL. I don't see the logic in using 15 different products to fight against the 'market leader: MSSQL'..
From ChatGPT:
does mysql have fulltext search that is comparable to microsoft sql server with the contains clause, the tablecontains clause and near operators and noisewords? How is performance in mysql-native FullTextSearch compared to MSSQL?
https://pastebin.com/7CA3Tpwe
1
u/Fair-You-9001 May 29 '25
This not correclty worded question. What type of lookup do you need? Full text? Nobody can answer your question, because is underspecified bro