Merge pull request #9962 from nextcloud/feat/devmanual/heavy-background-jobs

feat(devmanual): Recommend time insensitive jobs for performance
This commit is contained in:
Joas Schilling
2023-03-30 11:50:17 +02:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@@ -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
--------------------