mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Merge pull request #9962 from nextcloud/feat/devmanual/heavy-background-jobs
feat(devmanual): Recommend time insensitive jobs for performance
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
.. _app-backgroundjobs:
|
||||
|
||||
======================
|
||||
Background jobs (Cron)
|
||||
======================
|
||||
@@ -62,6 +64,8 @@ to pass on to the service to run the background job.
|
||||
The ``run`` function is the main thing you need to implement and where all the
|
||||
logic happens.
|
||||
|
||||
.. _app-backgroundjobs-time-sensitivity:
|
||||
|
||||
Heavy load and time insensitive
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ PHP Performance
|
||||
---------------
|
||||
|
||||
* Autoloader: Consider using an :ref:`optimized class loader<app-custom-classloader>`. The application code does not have to change for this optimization.
|
||||
* Heavy background jobs: Consider marking :ref:`background jobs <app-backgroundjobs>` as :ref:`time insensitive <app-backgroundjobs-time-sensitivity>` if they can be run at off-peak times with lower system load, e.g. at night.
|
||||
|
||||
Database performance
|
||||
--------------------
|
||||
|
||||
Reference in New Issue
Block a user