Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue about "data size" #2163

Open
HumanG33k opened this issue Jan 6, 2023 · 2 comments
Open

Issue about "data size" #2163

HumanG33k opened this issue Jan 6, 2023 · 2 comments

Comments

@HumanG33k
Copy link

Our file contain 483236 lines.

Should not Phinx be able to split/batch data ?

Exception: SQLSTATE[HY000]: General error: 7 number of parameters must be between 0 and 65535
In [/home/project/sources/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php, line 335]

2023-01-06 00:06:23 error: [PDOException] SQLSTATE[HY000]: General error: 7 number of parameters must be between 0 and 65535 in /home/eventmaster_testing/sources/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php on line 335
Stack Trace:
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/PdoAdapter.php:335
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/AdapterWrapper.php:180
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/TimedOutputAdapter.php:102
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Db/Adapter/AdapterWrapper.php:180
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Db/Table.php:652
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Db/Table.php:624
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Db/Table.php:682
- /home/project/sources/config/Seeds/CitiesSeed.php:483236
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Migration/Manager/Environment.php:146
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Migration/Manager.php:416
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Migration/Manager.php:557
- /home/project/sources/vendor/robmorgan/phinx/src/Phinx/Console/Command/SeedRun.php:102
- /home/project/sources/vendor/cakephp/migrations/src/Command/Phinx/CommandTrait.php:37
- /home/project/sources/vendor/cakephp/migrations/src/Command/Phinx/Seed.php:76
- /home/project/sources/vendor/symfony/console/Command/Command.php:298
- /home/project/sources/vendor/symfony/console/Application.php:1024
- /home/project/sources/vendor/symfony/console/Application.php:299
- /home/project/sources/vendor/symfony/console/Application.php:171
- /home/project/sources/vendor/cakephp/migrations/src/Command/MigrationsCommand.php:126
- /home/project/sources/vendor/cakephp/cakephp/src/Console/BaseCommand.php:179
- /home/project/sources/vendor/cakephp/migrations/src/Command/MigrationsCommand.php:198
- /home/project/sources/vendor/cakephp/cakephp/src/Console/CommandRunner.php:334
- /home/project/sources/vendor/cakephp/cakephp/src/Console/CommandRunner.php:172
- /home/project/sources/bin/cake.php:12
@MasterOdin
Copy link
Member

To confirm, you're using the ->insert method to try to add 483,236 data rows at once?

@dereuromark
Copy link
Member

You might want to split this up your self in different seed files or alike?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants