mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
optimization
This commit is contained in:
parent
c9c3426b16
commit
e7f18709b7
@ -833,7 +833,7 @@ if ($action === 'create_demo_data') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$agent_data_values_buffer_chunks = array_chunk($agent_data_values_buffer, 100000);
|
$agent_data_values_buffer_chunks = array_chunk($agent_data_values_buffer, 100000);
|
||||||
$agent_traps_values_buffer_chunks = array_chunk($agent_traps_values_buffer, 100000);
|
//$agent_traps_values_buffer_chunks = array_chunk($agent_traps_values_buffer, 100000);
|
||||||
|
|
||||||
foreach ($agent_data_values_buffer_chunks as $chunk) {
|
foreach ($agent_data_values_buffer_chunks as $chunk) {
|
||||||
// Bulk inserts (insert batches of up to 100,000 as a performance limit).
|
// Bulk inserts (insert batches of up to 100,000 as a performance limit).
|
||||||
@ -845,7 +845,7 @@ if ($action === 'create_demo_data') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get last trap in database.
|
// Get last trap in database.
|
||||||
$id_trap_begin = db_get_value(
|
/*$id_trap_begin = db_get_value(
|
||||||
'MAX(id_trap)',
|
'MAX(id_trap)',
|
||||||
'ttrap',
|
'ttrap',
|
||||||
1,
|
1,
|
||||||
@ -899,7 +899,7 @@ if ($action === 'create_demo_data') {
|
|||||||
$chunk,
|
$chunk,
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
update_item_checked(DEMO_AGENT);
|
update_item_checked(DEMO_AGENT);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user