NOJIRA Restore use of representation_id for rank key to maintain compatibility with existing dbs