Chapter 4. Performance Tuning in RethinkDB
As the size of your database grows and stores and processes million rows of records daily, so comes the challenge along with it, that is, performance. Query response time decreases as the size of data grows, most frequently accessed data puts a lot of load on the system. As we know, RethinkDB is a distributed database and it can store, index, and process data from multiple databases running independently. To the user end, it seems that the result comes from one database, but actually it doesn't.
This chapter is all about improving performance of RethinkDB by setting up clusters, replicating tables, and sharding data to improve the query time. We will also learn about the RethinkDB query profiler, which could be of great help for recognizing query performance issues.
In this chapter, we will cover the following topics:
- Creating and handling a RethinkDB cluster
- Securing a RethinkDB cluster
- Executing ReQL queries in a cluster
- Performing replication...