function item_store($arr,$force_parent = false, $notify = false, $dontcache = false) {
+ $perfdb = $a->performance["database"];
+ $perfdbw = $a->performance["database_write"];
+ $perfnet = $a->performance["network"];
+ $perffile = $a->performance["file"];
+
+ logger("Performance: Start", LOGGER_DEBUG);
+
// If it is a posting where users should get notifications, then define it as wall posting
if ($notify) {
$arr['wall'] = 1;
add_shadow_entry($arr);
}
+ $perfdb = $a->performance["database"] - $perfdb;
+ $perfdbw = $a->performance["database_write"] - $perfdbw;
+ $perfnet = $a->performance["network"] - $perfnet;
+ $perffile = $a->performance["file"] - $perffile;
+
+ logger("Performance: DB-R: ".round($perfdb - $perfdbw, 2)." - DB-W: ".round($perfdbw, 2)." - Net: ".round($perfnet, 2)." - File: ".round($perffile, 2), LOGGER_DEBUG);
+ //logger("Performance: DB-R: ".round($perfdb - $perfdbw, 2)." - DB-W: ".round($perfdbw, 2)." - Net: ".round($perfnet, 2), LOGGER_DEBUG);
+
check_item_notification($current_post, $uid);
if ($notify)
} else
$range = "AND `created` < UTC_TIMESTAMP() - INTERVAL %d DAY ";
- $r = q("SELECT * FROM `item`
+ $r = q("SELECT `file`, `resource-id`, `starred`, `type`, `id` FROM `item`
WHERE `uid` = %d $range
AND `id` = `parent`
$sql_extra