API: Speed improvements when fetching posts
This commit is contained in:
parent
86837ddb4a
commit
7e747b2f41
9 changed files with 140 additions and 104 deletions
|
@ -114,6 +114,7 @@
|
|||
"target" => ["post-content", "target"],
|
||||
"resource-id" => ["post-content", "resource-id"],
|
||||
"contact-id" => ["post-user", "contact-id"],
|
||||
"contact-uri-id" => ["contact", "uri-id"],
|
||||
"contact-link" => ["contact", "url"],
|
||||
"contact-addr" => ["contact", "addr"],
|
||||
"contact-name" => ["contact", "name"],
|
||||
|
@ -138,6 +139,7 @@
|
|||
"avatar-date" => ["contact", "avatar-date"],
|
||||
"thumb" => ["contact", "thumb"],
|
||||
"author-id" => ["post-user", "author-id"],
|
||||
"author-uri-id" => ["author", "uri-id"],
|
||||
"author-link" => ["author", "url"],
|
||||
"author-addr" => ["author", "addr"],
|
||||
"author-name" => "IF (`contact`.`url` = `author`.`url` AND `contact`.`name` != '', `contact`.`name`, `author`.`name`)",
|
||||
|
@ -150,6 +152,7 @@
|
|||
"author-gsid" => ["author", "gsid"],
|
||||
"author-uri-id" => ["author", "uri-id"],
|
||||
"owner-id" => ["post-user", "owner-id"],
|
||||
"owner-uri-id" => ["owner", "uri-id"],
|
||||
"owner-link" => ["owner", "url"],
|
||||
"owner-addr" => ["owner", "addr"],
|
||||
"owner-name" => "IF (`contact`.`url` = `owner`.`url` AND `contact`.`name` != '', `contact`.`name`, `owner`.`name`)",
|
||||
|
@ -161,6 +164,7 @@
|
|||
"owner-updated" => ["owner", "updated"],
|
||||
"owner-contact-type" => ["owner", "contact-type"],
|
||||
"causer-id" => ["post-user", "causer-id"],
|
||||
"causer-uri-id" => ["causer", "uri-id"],
|
||||
"causer-link" => ["causer", "url"],
|
||||
"causer-addr" => ["causer", "addr"],
|
||||
"causer-name" => ["causer", "name"],
|
||||
|
@ -283,6 +287,7 @@
|
|||
"target" => ["post-content", "target"],
|
||||
"resource-id" => ["post-content", "resource-id"],
|
||||
"contact-id" => ["post-thread-user", "contact-id"],
|
||||
"contact-uri-id" => ["contact", "uri-id"],
|
||||
"contact-link" => ["contact", "url"],
|
||||
"contact-addr" => ["contact", "addr"],
|
||||
"contact-name" => ["contact", "name"],
|
||||
|
@ -307,6 +312,7 @@
|
|||
"avatar-date" => ["contact", "avatar-date"],
|
||||
"thumb" => ["contact", "thumb"],
|
||||
"author-id" => ["post-thread-user", "author-id"],
|
||||
"author-uri-id" => ["author", "uri-id"],
|
||||
"author-link" => ["author", "url"],
|
||||
"author-addr" => ["author", "addr"],
|
||||
"author-name" => "IF (`contact`.`url` = `author`.`url` AND `contact`.`name` != '', `contact`.`name`, `author`.`name`)",
|
||||
|
@ -319,6 +325,7 @@
|
|||
"author-gsid" => ["author", "gsid"],
|
||||
"author-uri-id" => ["author", "uri-id"],
|
||||
"owner-id" => ["post-thread-user", "owner-id"],
|
||||
"owner-uri-id" => ["owner", "uri-id"],
|
||||
"owner-link" => ["owner", "url"],
|
||||
"owner-addr" => ["owner", "addr"],
|
||||
"owner-name" => "IF (`contact`.`url` = `owner`.`url` AND `contact`.`name` != '', `contact`.`name`, `owner`.`name`)",
|
||||
|
@ -330,6 +337,7 @@
|
|||
"owner-updated" => ["owner", "updated"],
|
||||
"owner-contact-type" => ["owner", "contact-type"],
|
||||
"causer-id" => ["post-thread-user", "causer-id"],
|
||||
"causer-uri-id" => ["causer", "uri-id"],
|
||||
"causer-link" => ["causer", "url"],
|
||||
"causer-addr" => ["causer", "addr"],
|
||||
"causer-name" => ["causer", "name"],
|
||||
|
@ -438,6 +446,7 @@
|
|||
"target" => ["post-content", "target"],
|
||||
"resource-id" => ["post-content", "resource-id"],
|
||||
"contact-id" => ["post", "author-id"],
|
||||
"contact-uri-id" => ["author", "uri-id"],
|
||||
"contact-link" => ["author", "url"],
|
||||
"contact-addr" => ["author", "addr"],
|
||||
"contact-name" => ["author", "name"],
|
||||
|
@ -462,6 +471,7 @@
|
|||
"avatar-date" => ["author", "avatar-date"],
|
||||
"thumb" => ["author", "thumb"],
|
||||
"author-id" => ["post", "author-id"],
|
||||
"author-uri-id" => ["author", "uri-id"],
|
||||
"author-link" => ["author", "url"],
|
||||
"author-addr" => ["author", "addr"],
|
||||
"author-name" => ["author", "name"],
|
||||
|
@ -474,6 +484,7 @@
|
|||
"author-gsid" => ["author", "gsid"],
|
||||
"author-uri-id" => ["author", "uri-id"],
|
||||
"owner-id" => ["post", "owner-id"],
|
||||
"owner-uri-id" => ["owner", "uri-id"],
|
||||
"owner-link" => ["owner", "url"],
|
||||
"owner-addr" => ["owner", "addr"],
|
||||
"owner-name" => ["owner", "name"],
|
||||
|
@ -485,6 +496,7 @@
|
|||
"owner-updated" => ["owner", "updated"],
|
||||
"owner-contact-type" => ["owner", "contact-type"],
|
||||
"causer-id" => ["post", "causer-id"],
|
||||
"causer-uri-id" => ["causer", "uri-id"],
|
||||
"causer-link" => ["causer", "url"],
|
||||
"causer-addr" => ["causer", "addr"],
|
||||
"causer-name" => ["causer", "name"],
|
||||
|
@ -569,6 +581,7 @@
|
|||
"target" => ["post-content", "target"],
|
||||
"resource-id" => ["post-content", "resource-id"],
|
||||
"contact-id" => ["post-thread", "author-id"],
|
||||
"contact-uri-id" => ["author", "uri-id"],
|
||||
"contact-link" => ["author", "url"],
|
||||
"contact-addr" => ["author", "addr"],
|
||||
"contact-name" => ["author", "name"],
|
||||
|
@ -593,6 +606,7 @@
|
|||
"avatar-date" => ["author", "avatar-date"],
|
||||
"thumb" => ["author", "thumb"],
|
||||
"author-id" => ["post-thread", "author-id"],
|
||||
"author-uri-id" => ["author", "uri-id"],
|
||||
"author-link" => ["author", "url"],
|
||||
"author-addr" => ["author", "addr"],
|
||||
"author-name" => ["author", "name"],
|
||||
|
@ -605,6 +619,7 @@
|
|||
"author-gsid" => ["author", "gsid"],
|
||||
"author-uri-id" => ["author", "uri-id"],
|
||||
"owner-id" => ["post-thread", "owner-id"],
|
||||
"owner-uri-id" => ["owner", "uri-id"],
|
||||
"owner-link" => ["owner", "url"],
|
||||
"owner-addr" => ["owner", "addr"],
|
||||
"owner-name" => ["owner", "name"],
|
||||
|
@ -616,6 +631,7 @@
|
|||
"owner-updated" => ["owner", "updated"],
|
||||
"owner-contact-type" => ["owner", "contact-type"],
|
||||
"causer-id" => ["post-thread", "causer-id"],
|
||||
"causer-uri-id" => ["causer", "uri-id"],
|
||||
"causer-link" => ["causer", "url"],
|
||||
"causer-addr" => ["causer", "addr"],
|
||||
"causer-name" => ["causer", "name"],
|
||||
|
@ -1045,6 +1061,9 @@
|
|||
"diaspora-notify" => ["fcontact", "notify"],
|
||||
"diaspora-poll" => ["fcontact", "poll"],
|
||||
"diaspora-alias" => ["fcontact", "alias"],
|
||||
"diaspora-interacting_count" => ["fcontact", "interacting_count"],
|
||||
"diaspora-interacted_count" => ["fcontact", "interacted_count"],
|
||||
"diaspora-post_count" => ["fcontact", "post_count"],
|
||||
"ap-uuid" => ["apcontact", "uuid"],
|
||||
"ap-type" => ["apcontact", "type"],
|
||||
"ap-following" => ["apcontact", "following"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue