I am starting to use Firebase to store data information. I learned that it is better to have it in a narrow structure instead of deep structure.
I have the following structure:
MainDetail
-Kd92jd93kaod93 <----ID
-Kfirkd9rmtiepr
-.....More than 1 million more
The question I have is that, I have over a million data and over a million ID's will be stored in a linear sequence under each main nodes like above.
Is this a good approach to have all the ids in one nodes? or should I break it down further such as by a date? Like...
01_MainDetail
-20170902
-Kd92jd93kaod93
-Kfirkd9rmtiepr
-....
-20170901
-Kd92jd93rt4e3
-Kfer5hrmtiepr
-....
-....
This contradicts what I read online as now I am not making it narrow and having multiple children.
What is the right approach when I have lots of data?