Added provider-specific size, which only queryies the DB