Vertical partitioning / sharding

Hi,

We have a “heavy” collection with documents that have http request and responses, including some base64 information.
We have a website that does has list over that collection but the request and response are only used in the get operation, full document.
Is there any way, built-in, to do vertical data partitioning? Put the list fields in a collection and the other fields in a “sub” collection.

Thanks,
Pedro

Hi @Pedro_Oliveira and welcome in the MongoDB Community :muscle: !

I think this blog post about the bloated documents from @Lauren_Schaefer talks exactly about your current problem:

Maybe the subset design pattern can also save the day:

Cheers,
Maxime.

2 Likes