removed log for plan query time
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Larastan / larastan (pull_request) Failing after 7m24s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 15m55s
Laravel Pint / pint (pull_request) Successful in 3m41s

This commit is contained in:
dhanabalan
2026-09-30 16:18:39 +05:30
parent 4f6472cd05
commit e192196fe3

View File

@@ -468,8 +468,6 @@ class ProductionTargetPlan extends Component
$dates = $this->getMonthDates($month, $year); $dates = $this->getMonthDates($month, $year);
$this->dates = $dates; $this->dates = $dates;
$start = microtime(true);
$plans = ProductionPlan::query() $plans = ProductionPlan::query()
->join('items', 'items.id', '=', 'production_plans.item_id') ->join('items', 'items.id', '=', 'production_plans.item_id')
->join('lines', 'lines.id', '=', 'production_plans.line_id') ->join('lines', 'lines.id', '=', 'production_plans.line_id')
@@ -495,8 +493,6 @@ class ProductionTargetPlan extends Component
) )
->get(); ->get();
Log::info('Plans: ' . ((microtime(true) - $start) * 1000) . ' ms');
$leaveDates = []; $leaveDates = [];
if ($plans->isNotEmpty() && $plans[0]->leave_dates) { if ($plans->isNotEmpty() && $plans[0]->leave_dates) {