WordPress.org

Ready to get started?Download WordPress

Forums

Restore Post ID count after removing several posts (4 posts)

  1. Comparativa de Bancos
    Member
    Posted 2 years ago #

    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

  2. keesiemeijer
    moderator
    Posted 2 years ago #

    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.

  3. Comparativa de Bancos
    Member
    Posted 2 years ago #

    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.

  4. keesiemeijer
    moderator
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags