Migrating a large forum

What’s more important to the speed of import - ram or CPU?