Layout optimization
1. Show only Smart fields you absolutely need. 2. Reduce the number of records per page
.png?fit=max&auto=format&n=6VDuJILf7L-u9y4z&q=85&s=8f970e9ac6cd18548d7b423bbb35e8e2)
You can hide some fields in your table view; this will not prevent you from seeing them in the record details view.

Optimize smart fields performance
To optimize your smart field performances, please check out this section.Restrict search on specific fields
Sometimes, searching in all fields is not relevant and may even result in big performance issues. You can restrict your search to specific fields only using thesearchFields option.
Rails
In this example, we configure Forest to only search on the fieldsname and industry of our collection Company.
Disable pagination count
This feature is only available if you’re using the
forest-express-sequelize (v8.5.3+), forest-express-mongoose (v8.6.5+), forest-rails (v7.5.0+) or django-forestadmin (v1.2.0+) agent.- Rails
- Django
- Laravel
- creating a controller in the repository
lib/forest_liana/controllersfor override the count action
- adding a route in
app/config/routes.rbbeforemount ForestLiana::Engine => '/forest'
- Rails
- Django
Database Indexing
Indexes are a powerful tool used in the background of a database to speed up querying. It power queries by providing a method to quickly lookup the requested data. As Forest generates SQL queries to fetch your data, creating indexes can improve the query response time. 5. Index the Primary and Unique Key ColumnsThe syntax for creating an index will vary depending on the database. However, the syntax typically includes a
CREATE keyword followed by the INDEX keyword and the name we’d like to use for the index. Next should come the ON keyword followed by the name of the table that has the data we’d like to quickly access. Finally, the last part of the statement should be the name(s) of the columns to be indexed.
customers table, we could use the following statement:
Loading time benchmark
Below is the outcome of a performance test on page load time of the Table view. It highlights the importance of using indexes and limiting the number of columns and lines..png?fit=max&auto=format&n=7CReagZK6gkpGoy9&q=85&s=9c5fef15feb63555bcdeae8d12517f82)