I have a simple question. I have a card object and in that card object i have an arraylist of Strings called "tags." There are two ways I can store the tags.
- I can put all the tags ("food,"dessert,"drink") into one string object, and query that object and parse the individual tags at the ",".
- I can put all the tags into an arrayList of strings and then query that arraylist of strings and not have to parse. But here, Firebase creates an extra key and slot for each object in the tags arrayList. I'm not sure if that matters.
Which one is a more efficient method of storing and retrieving data?