I have a question regarding my Android app.
Assume 2 tables A and B. A contains some fields and a link to B with an ID. B contains an ID as primary key and a description.
When I display the contents of whole A, I don’t want to see the ID of B, but the description.
Table B can contain until 100 descriptions.
What is the best way to do this? Shall I query B for every record of A for getting the description? Or should I read table B into memory and get the description from memory?
I want a good performance, but don’t want to use all the available memory on the device.
Later on, A can contain such links to a table C, D, …
Any help is much appreciated.
You need to Use join queries.
Join samples