To limit the number of records to be displayed, we will use the Limit function within the query where they bring the data of a certain table.

For example in this way:

![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbUpPIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--4019f04f8870c227076ac15e2eed45a9019df56b/image.png)

Then only 5 records are shown:

![](http://34.207.224.239:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbU5PIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--73e7f40f600b431b88f3d06fbcc8297efa624ccb/image%20(1).png)