Skip to content

pre-process phpbb3 bbcode posts to discourse markdown posts, in phpbb3's mysql database.

License

Notifications You must be signed in to change notification settings

openSUSE-zh/discourse-phpbb3-posts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discourse-phpbb3-preprocess-posts


Discourse's bbcode to markdown conversion is done at importing, and it creates many sidekiq jobs that will finish in days.

It significantly decreases the response speed of your site, causing high CPU/memory/disk IO usages.

So I invent this, we pre-process the phpbb3 bbcode posts in your backup mysql server, that is, we convert it in advance, so they're ready to be imported and serve immediately.

Usage

cp -r config/config.yml.example config/config.yml

Edit the configuration file and fill in your credentials of the mysql database.

ruby bin/phpbb3_bb2md

And wait.

The time spent depends on your database's size. I have a 30000+ posts and it took 10 minutes.

About

pre-process phpbb3 bbcode posts to discourse markdown posts, in phpbb3's mysql database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages