mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-12 04:44:26 +02:00
Use optimized update statements
This commit is contained in:
parent
557d0e3aeb
commit
5be9c9dbaf
8 changed files with 83 additions and 51 deletions
|
@ -151,8 +151,8 @@ class Cron
|
|||
// We are acquiring the two locks from the worker to avoid locking problems
|
||||
if (DI::lock()->acquire(Worker::LOCK_PROCESS, 10)) {
|
||||
if (DI::lock()->acquire(Worker::LOCK_WORKER, 10)) {
|
||||
DBA::e("OPTIMIZE TABLE `workerqueue`");
|
||||
DBA::e("OPTIMIZE TABLE `process`");
|
||||
DBA::optimizeTable('workerqueue');
|
||||
DBA::optimizeTable('process');
|
||||
DI::lock()->release(Worker::LOCK_WORKER);
|
||||
}
|
||||
DI::lock()->release(Worker::LOCK_PROCESS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue