1
0
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:
Jon Ziebell
2021-02-26 14:51:59 -05:00
parent 1c65cd6fcf
commit 089cbb69e3
4 changed files with 35 additions and 13 deletions
+1 -3
View File
@@ -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);
}
/**