This is my table with a small sample data:
orbId orbPosition layoutName
1 6.7 FirstLayout
2 7.3 FirstLayout
3 8.4 FirstLayout
1 5.5 SecondLayout
2 6.8 SecondLayout
I am using SELECT query to fetch everything with WHERE clause on layoutName. Is it better if I save multiple orbs in one rows and have less rows instead for example:
orbId orbPosition layoutName
["1","2","3"] ["6.7","7.3","8.4"] FirstLayout
["1","2"] ["5.5","6.8"] SecondLayout
Let me know pros and cons of both methods and which method is better suitable.