How to split data into 2 collections in Mongo DB and access the same in SpringBoot

I am using Mongo DB as Database for my springboot application.

I wanted to split the data into 2 collections -primary and auxillary just like how we do it in sql- priamary and secondary table.

Can i do the above and use them in my Springboot application??

Hi @Sanjay_Naik and welcome back to the MongoDB community forum!!

To understand the requirement in more details, it would be helpful if you could share what are primary and auxillary table in sql? Are these two two identical tables created for fault tolerance or these are two table with data divided between them for faster retrieval.

Best Regards