In this chapter, you learned all about strategies to improve the performance of a RethinkDB database and optimize queries. First, you learned about a few settings to tweak in the configuration file. Then, you learned about the importance of indexing and how to use indexes in queries. Finally, you learned how to use some more advanced queries, including sorting and aggregations.
In the following chapter, you will learn how to install the Node.js RethinkDB plugin and run queries in JS.