Skip to content

Commit b580586

Browse files
committed
reduce the seeded entries to 100k
1 parent 6866644 commit b580586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

database/seeders/MillionCommentsSeeder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ public function run()
3232
DB::disableQueryLog();
3333
DB::beginTransaction();
3434

35-
for ($i = 1; $i <= 1000; $i++) {
35+
for ($i = 1; $i <= 100; $i++) {
3636
$body = $this->faker->text;
3737
$commentable = $i % 2 == 0 ? $this->owners->random() : $this->pets->random();
3838
$commentable_type = get_class($commentable);
3939
$commentable_id = $commentable->getKey();
4040

41-
$comments = array_fill(0, 1000, [
41+
$comments = array_fill(0, 100, [
4242
'body' => $body,
4343
'commentable_type' => $commentable_type,
4444
'commentable_id' => $commentable_id,

0 commit comments

Comments
 (0)