<commit_before>var exporter  = require('./exporter.js');

exporter.once('exporter.ready', function() {
    var c = 1;
    exporter.exportUsers(function(err, map, arr, nextBatch) {
        console.log('outertest', err, Object.keys(map), arr.length, c++);
        // setTimeout(nextBatch, 2500);
    },
    {
        batch: 5
    },
    function() {
        console.log('\n\n\n\nim done');
        process.exit();
    });
});

exporter.init({
    exporter: {
        module: 'nodebb-plugin-import-smf',
        host: 'localhost',
        user: 'user',
        password: 'password',
        port: 3306,
        database: 'smf_large',
        tablePrefix: 'yabbse_',
        skipInstall: true
    }
});
<commit_msg>Update temp.js<commit_after>var exporter  = require('./exporter.js');

exporter.once('exporter.ready', function() {
    var c = 1;
    var batchsize = 25000;
    
    async.series([
        function(nextExport){
            exporter.exportUsers(function(err, map, arr, nextBatch) {
                console.log('gotusers', err, Object.keys(map), arr.length, c++);
                nextBatch();
            },{batch: batchsize},function() {console.log('usersdone');nextExport();}); 
        },
        function(nextExport){
            exporter.exportCategories(function(err, map, arr, nextBatch) {
                console.log('gotcategories', err, Object.keys(map), arr.length, c++);
                nextBatch();
            },{batch: batchsize},function() {console.log('categoriesdone');nextExport();}); 
        },
        function(nextExport){
            exporter.exportTopics(function(err, map, arr, nextBatch) {
                console.log('gottopics', err, Object.keys(map), arr.length, c++);
                nextBatch();
            },{batch: batchsize},function() {console.log('topicsdone');nextExport();}); 
        },
        function(nextExport){
            exporter.exportPosts(function(err, map, arr, nextBatch) {
                console.log('gotposts', err, Object.keys(map), arr.length, c++);
                nextBatch();
            },{batch: batchsize},function() {console.log('postsdone');nextExport();}); 
        }
        ], function() {
        console.log('done');
    });
});

exporter.init({
    exporter: {
        module: 'nodebb-plugin-import-smf',
        host: 'localhost',
        user: 'user',
        password: 'password',
        port: 3306,
        database: 'smf_large',
        tablePrefix: 'yabbse_',
        skipInstall: true
    }
});

{'fraction_non_alphanumeric': 0.167739340305712, 'fraction_numerical': 0.008045052292839904, 'mean_word_length': 2.2467362924281984, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4461598', 'n_tokens_mistral': 765, 'n_tokens_neox': 732, 'n_words': 132}