ecto_instashard v0.3.5 Ecto.InstaShard.Sharding.Hashing

Link to this section Summary

Functions

Get the shard number from an item id

Get a hash for an item id

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.

Get a hash for an item id