1 comment

[ 1.8 ms ] story [ 26.3 ms ] thread
Unlike something like friendly_id, this isn't really indexable, since n is variable in the sluggable query, at least for pg:

    left(id::text, n) = friendy_uuid
It always results in a sequential scan.