I have an Android app where users can send private messages to each other. (for example: A sends a message to B and C, and three of them can comment on this message)
I use the Google engine for Google and the Google data store using Java. (Objectify framework) I created a Member object and a Message object that contains an ArrayList<String> field representing a list of recipients. (i.e. the key field of the Member object)
So that the user can receive all messages in which he is one of the recipients, I planned to upload each Message object to the data store and then select them, checking if the ArrayList<String> field contains the user ID, However, given that one hundred thousand can be stored Messages, I was wondering if this is possible, and if it does not take too much time?
source share