WordPress.org

Support

Support » How-To and Troubleshooting » Restore Post ID count after removing several posts

Restore Post ID count after removing several posts

  • Hello,

    doing tests importing many (1000 or even more) posts from a csv per instance, I am generating a lot of new posts that are being removed afterwards (with wordpress -> select -> move to trash -> empty trash).

    The point is that the ID count keep growing. It is not a problem by itself but now I am already creating posts with ID > 25000 and keep growing and was wondering if this might be a problem at some given point.

    Do you think it is ok? Or could it be better to “reuse” hte ID of removed posts?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator keesiemeijer

    @keesiemeijer

    Do you think it is ok?

    This is normal behaviour for IDs in a database, the numbering is incremental. It doesn’t really matter how big the ID number gets.

    OK, just wondering.

    In the long term, for a very active website with thousand of products this can grow quickly and having gaps from ID 5000 to 10000 per instance. Countries do that when they gave just born babies the ID number of died person 🙂

    Thanks again for your answer.

    Moderator keesiemeijer

    @keesiemeijer

    No problem. I think only us humans have problems with gaps in numbers.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Restore Post ID count after removing several posts’ is closed to new replies.