Answer the question
In order to leave comments, you need to log in
How do indexing and MapReduce algorithms work?
Greetings!
I'm interested in any articles that talk about how databases work? What algorithms are used? How does indexing work? How is MapReduce?
I have only superficial knowledge of these algorithms (red-black tree, A*, etc.). I want to understand them in more detail. And for fun and fun, write a document-oriented database in PHP.
For starters, it would be good to read about indexing, and about MapReduce.
Please share links to literature and articles. Thank you.
Answer the question
In order to leave comments, you need to log in
Everyone has a different implementation - it depends on the architecture of the cluster, on the data model.
In Couchbase, for example, the user writes the Map, Reduce functions in JavaScript.
In Hadoop, you can write them in Java, C++, and even use third-party executables.
SQL can also be thought of as a kind of Map.
The cluster architecture can change the implementation very much.
And for fun and fun, write a document-oriented database in PHP.How much time will you waste ...
Very good example at php sebastian-bergmann.de/archives/750-Map-and-Reduce-in-PHP.html , enjoy the simplicity of the solution :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question