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

Test Nette\Database backend for thread-safe #33

Open
jkuchar opened this issue Jul 24, 2014 · 1 comment
Open

Test Nette\Database backend for thread-safe #33

jkuchar opened this issue Jul 24, 2014 · 1 comment
Milestone

Comments

@jkuchar
Copy link
Owner

jkuchar commented Jul 24, 2014

  1. Set UI to use hi parallelism (10 threads)
  2. Upload 1 000 small files, all must be correctrly uploaded
@jkuchar jkuchar added this to the v1.1.1 milestone Jul 24, 2014
@stewestw
Copy link

stewestw commented Apr 1, 2015

for those, who will try to run MultipleFileUpload with Nette/Database in Nette 2.3, this worked for me:

// Setup MultipleFileUpload in bootstrap.php

$db = $container->isCreated('database.default.context') ? $container->getService('database.default.context') : $container->createService('database.default.context');

MultipleFileUpload\MultipleFileUpload::register();

MultipleFileUpload\MultipleFileUpload::getUIRegistrator()
->clear()
->register('MultipleFileUpload\UI\Uploadify');

MultipleFileUpload\MultipleFileUpload::setQueuesModel(new MultipleFileUpload\Model\NetteDatabase\Queues($db));

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

2 participants