Do not cache query when transferring collection (#671)
Check if parent method returned IDs before querying database (#671)