Not load the ids of child documents into memory.

PR for #3028