- Node - a server that stores data
- Cluster - a collection of nodes
- Index - collection of similar documents
A shard is a subset of the index data.
Solves the problem where the size of an index exceeds the hardware limit of a single node.
##Leap My code: here
Responder #1 (here) - This solution is very close to mine, but with a one line return method, which makes it more efficient.
Responder #2 (here) - I liked this implementation. It's short and clear. Rather than using a if statement, this person is just returning the result of a combination of comparisons (true or false).
Responder #3 (here) - This person used a nested conditional, which made the implementation more complicated than what it needed to be.
Responder #4 (here) - This solution used an if statement, however the user added an extra step to return false in case that the else if statement evaluated false, which is unnecessary.
rails new <project_name> -d postgresql --skip-turbolinks --skip-spring -T
-d postgresql
sets up the project to use PostgreSQL--skip-turbolinks
& --skip-spring
creates a project that does not use turbolinks or spring-T
skips the creation of the test directory and use of Test::Unit