ecto_instashard v0.5.0 Ecto.InstaShard.Sharding.Hashing
Link to this section Summary
Link to this section Functions
Link to this function
extract(item_id)
Get the shard number from an item id.
Useful when it's necessary to select the item from the database or insert related data.
Link to this function
item_hash(id)
Get a hash for an item id