1. On the Admin Panel, Stores > Settings > Configurations.
2. On the left panel, under Catalog, select Catalog.
3. Open the Storefront section,
4. Choose Yes in the Use Flat Catalog Category field.
5. Choose Yes in the Use Flat Catalog Product field.
Reindex by below command:
php bin/magento indexer:reindex
It may help you to boost your website speed! Problem Solved? Please click on 'Kudos' & Accept as Solution!