I am building an angular component for handling custom calendars and events. Once an event is created I save the given data to the firestore database as single documents.
Document sample :
{
"name" : "test event",
"description" :"sample test event for check",
"startdate":"8/12/2021",
"enddate":"8/12/2021",
"color":"#11111",
"userid":"user1"
}
So on creating each event the similar data structure will be saved as individual documents. We can filter the custom calendar with a date range and also support showing multiple user events in a single calendar.
But using the above document structure, when we try to fetch a large amount of data it leads to higher costing to the server. How can I organize these data on an individual basis or else? Can Anyone suggest your opinion about this?