var data = [] for (let i = 0; i < 5000000; ++i) data.push({ username: 'toto' }) data.push({ username: 'titi' }) for (let i = 0; i < 2500000; ++i) data.push({ username: 'toto' })