WordPress-Importer : Perform less database queries when backfilling attachment urls
|Reported by:||tott||Owned by:||duck_|
The current backfill_attachment_urls() approach causes a REPLACE query for each attachment url. This can cause the invalidation of a lot of data and also cause MySQL replication lag in some cases.
The attached patch will make sure to bundle these requests and perform only maximum of one db update per post.
Change History (12)
comment:8 @chriscct7 — 5 months ago
- Keywords has-patch needs-testing removed
- Resolution set to worksforme
- Status changed from assigned to closed