System Information
- Strapi Version: 4.1.5
- Operating System: Ubuntu Linux
- Database: MySQL 8.0.27
- Node Version: v14.18.1
- NPM Version: 8.5.4
- Yarn Version:
Hi, I have a collection with about 500k items. It call Rest API and it return data slowly. It take 6.39s. How can I make it faster? Thanks!
My collection schema:
{
"kind": "collectionType",
"collectionName": "projects",
"info": {
"singularName": "project",
"pluralName": "projects",
"displayName": "Project",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string",
"required": true
},
"alias": {
"type": "string",
"unique": true,
"required": true
},
"description": {
"type": "richtext"
},
"download": {
"type": "string"
},
"logo": {
"type": "string"
},
"source": {
"type": "string"
},
"screenshots": {
"type": "json"
},
"project_categories": {
"type": "relation",
"relation": "oneToMany",
"target": "api::project-category.project-category"
},
"project_reviews": {
"type": "relation",
"relation": "oneToMany",
"target": "api::project-review.project-review",
"mappedBy": "project"
},
"review_count": {
"type": "integer"
},
"review_score": {
"type": "decimal"
},
"version": {
"type": "string"
},
"download_count": {
"type": "integer"
},
"developer_name": {
"type": "string"
},
"developer_link": {
"type": "string"
},
"faqs": {
"type": "relation",
"relation": "oneToMany",
"target": "api::faq.faq",
"mappedBy": "project"
},
"review_1star_percent": {
"type": "integer"
},
"review_2star_percent": {
"type": "integer"
},
"review_3star_percent": {
"type": "integer"
},
"review_4star_percent": {
"type": "integer"
},
"review_5star_percent": {
"type": "integer"
}
}
}