Hey there! Finally diving into YJS and building a prototype of my product built completely with YJS. The experience has been incredible so far, but I have a question regarding subdocs.
At what scale should I consider using them? It seems like migrating to subdocs later would be difficult, so I’m trying to design my first schema with subdocs in mind. For example, many of my users’ projects consist of thousands upon thousands of documents, so I’m modeling the project as a Y.Map index of document metadata, and then their content is lazily loaded via subdocuments.
Is this an appropriate usage? I don’t want to prematurely optimize, as subdocs add complexity, especially when trying to export or index data for searching, but at the same time, I’m hesitant to have everything in one document, since many of my users are so prolific with their content.