There are many data leaks that result from exposing the internal IDs of your data. These are easy to guess if you use sequential/auto-incremented values for the primary key of your data and later share it outside. here is how I think you can avoid it without sacrificing performance.