The author spent two months to completely rewrite the database components of SageMathCloud (SMC) to use PostgreSQL instead of RethinkDB. Everything is an order of magnitude more efficient using PostgreSQL than it was with RethinkDB.