You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing the class instance into the Job is causing to have an additional data of that class in json-serialized representation of the job in redis/db/whatever job storage it use.
At the same time we always could get a LogToDb class instance right inside the job's handle method without performance cost.
So, right now in a waiting jobs we just waste RAM to store copies of identical data which recoverable without job-specific context.
The text was updated successfully, but these errors were encountered:
Probably, we don't need to push the
LogToDb
main class into the Job herelaravel-log-to-db/src/Jobs/SaveNewLogEvent.php
Line 22 in 026a492
Passing the class instance into the Job is causing to have an additional data of that class in json-serialized representation of the job in redis/db/whatever job storage it use.
At the same time we always could get a
LogToDb
class instance right inside the job'shandle
method without performance cost.So, right now in a waiting jobs we just waste RAM to store copies of identical data which recoverable without job-specific context.
The text was updated successfully, but these errors were encountered: