mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
feat(devmanual): Recommend time insensitive jobs for performance
Recommend marking background jobs as time insensitive in our performance recommendations for app devs. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
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