mirror of
https://github.com/beestat/app.git
synced 2026-05-13 10:52:29 -04:00
Optimized away a slow query into a transaction.
This commit is contained in:
@@ -19,9 +19,7 @@ final class api_log extends crud {
|
||||
* @return int The ID of the inserted row.
|
||||
*/
|
||||
public function create($attributes) {
|
||||
// Insert using the transactionless connection.
|
||||
$database = database::get_transactionless_instance();
|
||||
return $database->create($this->resource, $attributes);
|
||||
$this->request->queue_create($this->resource, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user