Skip to content

Commit

Permalink
Run bin/pop and cv pipe with no memory limits
Browse files Browse the repository at this point in the history
The random-generator for CID's loads all CIDs. For large DBs, this takes a lot of memory.
  • Loading branch information
totten committed May 25, 2023
1 parent ebadf34 commit e363a86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/pop
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ use Symfony\Component\Filesystem\Filesystem;
use Civi\Pop\Pop;
use Symfony\Component\Yaml\Yaml;

ini_set('memory_limit', -1);

require_once dirname(__DIR__) . '/vendor/autoload.php';
$c = clippy()->register(plugins());

$c['app']->main('file', function(string $file, SymfonyStyle $io, OutputInterface $output) {

try {
\Civi\Pop\Connection::connect('cv pipe vjt');
\Civi\Pop\Connection::connect('php -d memory_limit=-1 `which cv` pipe vjt');
}
catch (\Throwable $t) {
$io->error([
Expand Down

0 comments on commit e363a86

Please sign in to comment.