Strapi "one-to-many" - how many, Is there a limit?

Hi Guys,

I have a simple question: Is the sub-results that I get through a “one-to-many” relationship limited? If yes, how many? :thinking:

E.g .: bookshelf and book have a “one-to-many” relationship. When I get “findOne (id_bookshelf)”, is there a Max number of books that can be found in my Bookshelf JSON?

Thanks in advance! :+1:

I believe at the moment there is a bug on how many relations returned, which would be whatever your default response setting is set to (default without modification is 100) but we do consider this a bug. Technically there is “no limit” (I say that with a grain of salt, as it depends on the maximum ID length of the databases table/collection.)

Performance however is a whole different story, I would suggest that with massive amounts of relations you either use the oneWay or manyWay relationship types as you shouldn’t need to get the data on both sides with that many.

1 Like

Many Thanks! I’ll check my app to see if I can still tweak somewhere. :slightly_smiling_face: :+1:
But please let me know if this bug is fixed at any time.