You don't have to query your Realm database each time you want some objects back - learn to use pre-filtered and sorted object lists.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4146-beginning-realm-on-ios/lessons/5