In a support thread titled “phpBB 3 Importer goes slow,” Maestra_Powers reports that while the phpBB 3 importer works, it dramatically slows down after ~60% completion—sometimes progressing only 0.3% overnight. They ask whether restarting will duplicate posts or if splitting the database is safe. neil confirms the importer skips already imported posts and acknowledges the slowdown, though its cause is unclear. Maestra_Powers suspects memory limits or regex slowness, noting that restarting after Ctrl+C failures required a server reboot. They also mention the importer correctly targets only one DB in multisite setups and observe a minor issue where embedded YouTube videos stop rendering as players after ~700 posts (fixable by editing posts). Mittineague suggests rebaking, but Maestra_Powers finds rake posts:rebake suffers the same slowdown. clay theorizes index-heavy tables may cause paging when exceeding RAM. Maestra_Powers reports a critical bug: duplicate category names (e.g., “Classes” under different parent categories) cause misassigned topics. codinghorror suggests embedding phpBB IDs to prevent this. neil confirms IDs are available. gerhard identifies the root cause—importers use category names instead of IDs—and submits a PR to fix it, which neil merges.
Wanna ask about phpBB 3 importer. It works fine, but I have a lot of posts on my forum.
And after about 60% it starts to go very slow. And it goes slower and slower. I tried this converter on test server before, it worked 4 days and I got to 74.8%. Over last night it was 0.3% progress so I aborted it.
My questions:
Will it start over and duplicate already converted posts if I’ll abort it now and run again?
What’s the best way to split this operation in half? I can split my phpBB database in half, but will importer work in two runs like this, and not messup first imported part when I’ll start to import second one?
The importer will skip posts that it already imported, so feel free to cancel it and restart it. I don’t know what causes it to gradually slow to a crawl. I added as much batch processing as I could find, but maybe I missed something…
I think it bumps into memory limit or something, RegExp is a slow thing. After I stopped importer with Ctrl+C twice and tried to run it again, it got stuck right at start. So I’ve rebooted server and re-run it - worked great. Thanks for awesome convertor, Neil.
Wanna share an experience. I launched it with Discourse multisite config. And it was imported on first DB. My concern was that it would import on both DBs - didn’t happened.
I noticed one tiny minus so far. I have a topic for YouTube videos about cats in hats, it have 1000+ posts. After 700 post or so videos are not shows as a player-box, it shows like links. It becomes a player if you edit and save message. It’s not a big deal thought, what important is that links are there.
One idea: If it’s inserting into a table that is indexed, it probably has to hold the index in memory while inserting. Once the index is larger than available RAM, it starts paging and gets super slow. If that’s the case, try creating the table first and then indexing after the records are inserted.
I wanna report an issue. I can’t believe I didn’t saw it right at begining… Before importing my DB to Discourse I structured phpBB in Discourse style - 1 level of sub-categories max. But some sub-categories had same names. Such as:
World of Warcraft > Classes
Tera > Classes
And those sub-categories totally messed up together. I have topics from Tera > Classes in WoW > Classes category now, topics from WoW > Classes in Tera > Classes, etc. So, users beware! Names of ALL your phpBB forums has to be unique before importing.
Hmm @neil we should fix this for future phpbb imports – can we embed the ID in the categories so they don’t get inappropriately mapped to duplicate names?