How to make child documents live in parent document only?

I am new to strapi and its quite nice. I have one question. I am using strapi with mongo db. Now my problem is that I want to make sure that all the has many relations live in the parent document so that its fast at the time of the query. Is it possible to mention some flag in while creating a document so that all the relations in the document live in the same document?

Hello, no, you can’t store relation data inside the same document. For speed improvements of the API responses you can take a look at the community’s Middleware for cache: