Improve efficiency of joins by avoiding to load all of a table's relations.

This change requires a custom TableMap that has separated methods for adding relations.