# אחזר פוסטים אחרונים לפי מזהה

**URL:** <https://meta.discourse.org/t/retrieve-latest-posts-by-id/202159>\
**Category:** Product Support\
**Created:** [30 באוגוסט,‏ 2021,‏ 7:19pm UTC](https://meta.discourse.org/t/retrieve-latest-posts-by-id/202159 "2021-08-30T19:19:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [31 באוגוסט,‏ 2021,‏ 8:50pm UTC](https://meta.discourse.org/t/retrieve-latest-posts-by-id/202159/6 "2021-08-31T20:50:46Z")

</div>

> [@hkremer](#):
>
> Anecdotally in our Discourse instance, we are seeing many examples of IDs being assigned to posts outside of their chronological order.

Each Postgres leader grabs a bundle of, I believe, 32 auto increment IDs at once. If your database is large enough, then creations will alternate between bundles.

This also means that gaps will be created when you fail over a database.

---

_[View the full topic](https://meta.discourse.org/t/retrieve-latest-posts-by-id/202159)._
