use a local variable for connection.ops.max_name_length() so you don't have to call the method 3 times?