The view can be made simpler
This commit is contained in:
parent
8643603f8b
commit
608d3b2b32
|
@ -1643,7 +1643,7 @@ CREATE VIEW `post-view` AS SELECT
|
||||||
LEFT JOIN `item-content` ON `item-content`.`uri-id` = `item`.`uri-id`
|
LEFT JOIN `item-content` ON `item-content`.`uri-id` = `item`.`uri-id`
|
||||||
LEFT JOIN `post-delivery-data` ON `post-delivery-data`.`uri-id` = `item`.`uri-id` AND `item`.`origin`
|
LEFT JOIN `post-delivery-data` ON `post-delivery-data`.`uri-id` = `item`.`uri-id` AND `item`.`origin`
|
||||||
LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid`
|
LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid`
|
||||||
STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`uri-id` = `item`.`parent-uri-id` AND `parent-item`.`uid` = `item`.`uid`
|
STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`uri-id` = `item`.`parent-uri-id`
|
||||||
STRAIGHT_JOIN `contact` AS `parent-item-author` ON `parent-item-author`.`id` = `parent-item`.`author-id`;
|
STRAIGHT_JOIN `contact` AS `parent-item-author` ON `parent-item-author`.`id` = `parent-item`.`author-id`;
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|
|
@ -190,7 +190,7 @@
|
||||||
LEFT JOIN `item-content` ON `item-content`.`uri-id` = `item`.`uri-id`
|
LEFT JOIN `item-content` ON `item-content`.`uri-id` = `item`.`uri-id`
|
||||||
LEFT JOIN `post-delivery-data` ON `post-delivery-data`.`uri-id` = `item`.`uri-id` AND `item`.`origin`
|
LEFT JOIN `post-delivery-data` ON `post-delivery-data`.`uri-id` = `item`.`uri-id` AND `item`.`origin`
|
||||||
LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid`
|
LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid`
|
||||||
STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`uri-id` = `item`.`parent-uri-id` AND `parent-item`.`uid` = `item`.`uid`
|
STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`uri-id` = `item`.`parent-uri-id`
|
||||||
STRAIGHT_JOIN `contact` AS `parent-item-author` ON `parent-item-author`.`id` = `parent-item`.`author-id`"
|
STRAIGHT_JOIN `contact` AS `parent-item-author` ON `parent-item-author`.`id` = `parent-item`.`author-id`"
|
||||||
],
|
],
|
||||||
"category-view" => [
|
"category-view" => [
|
||||||
|
|
Loading…
Reference in a new issue