Quickly calculate information about a relational schema