Get the index which places the predicate xattrs earliest in its primary key order
The idea is that this will maximally speed up traversal of records, but this may
depend on the cardinality / distribution of the subkey values
If path itself is not initialized as a Ghee table, its ancestor directories
will be searched to see if it is part of an initialized table, in which case
the containing table’s indices are returned.
For a path under a base_path, interpret the sub-paths beneath base_path as
values of the given key; partial key matches are OK, e.g. just age on a key
of (age, name).