More prevention of double processing of the same content

This commit is contained in:
Michael 2022-08-06 17:06:55 +00:00
parent 8b698b183d
commit 87a945b295
8 changed files with 141 additions and 52 deletions

View file

@ -55,7 +55,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1477);
define('DB_UPDATE_VERSION', 1478);
}
return [
@ -1723,6 +1723,28 @@ return [
"uri-id_uid" => ["UNIQUE", "uri-id", "uid"],
]
],
"arrived-activity" => [
"comment" => "Id of arrived activities",
"fields" => [
"object-id" => ["type" => "varbinary(255)", "not null" => "1", "primary" => "1", "comment" => "object id of the incoming activity"],
"received" => ["type" => "datetime", "comment" => "Receiving date"],
],
"indexes" => [
"PRIMARY" => ["object-id"],
],
"engine" => "MEMORY",
],
"processed-activity" => [
"comment" => "Id of processed activities",
"fields" => [
"object-id" => ["type" => "varbinary(255)", "not null" => "1", "primary" => "1", "comment" => "object id of the incoming activity"],
"received" => ["type" => "datetime", "comment" => "Receiving date"],
],
"indexes" => [
"PRIMARY" => ["object-id"],
],
"engine" => "MEMORY",
],
"worker-ipc" => [
"comment" => "Inter process communication between the frontend and the worker",
"fields" => [