jfilby / nexus

A Nim web framework with batteries included
Apache License 2.0
101 stars 3 forks source link

Cached model keys: use a non-collidable hash for non-int64 and composite primary keys #23

Open jfilby opened 2 years ago

jfilby commented 2 years ago

Right now the cached model key is whatever type of the primary key is. Composite primary keys use tuples.

This could be inefficient for non-int64 primary keys.