Reset/Reorder posts ID in the MySQL wp_posts table

If you want sequential numbers for your posts, then don’t use the post ID column.

AUTO_INCREMENT is meant to provide unique numbers (and split-brains in multi-master replication), it is never going to be without gaps, especially not in WordPress (revisions, autosaves, pages, contact forms, galleries and a bunch of other plugins) and especially not with InnoDB. A simple transaction failure/rollback can cause the AUTO_INCREMENT fields to increment a billion times without inserting a single row, it’s pretty normal behavior. I’ll also quote Tamas from this Stack Overflow thread:

You should never depend on the numeric features of autogenerated keys.

From a performance point of view, it doesn’t really matter. A BIGINT holding 412, a BIGINT holding 7060 and a BIGINT holding five billion are all 64-bit integers.

If you want truly sequential identifiers (for your UX or whatever) you should use your own much more predictable and isolated numbering logic.