3
21.92 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
803676
747159
802866
768227
715583
654256
823720
593075
603578
635636
210281
823177
787379
443392
736146
635833
678862
502538
594577
817445
577454
651039
704189
799350
507814
469494
447038
811208
425559
562592
571711
730497
593894
484944
578803
490841
661970
478571
607023
605529
458348
767859
490261
496060
454947
466573
448097
636598
502537
457786
647328
534617
503662
515633
502539
502540
457789
502518
458191
609531
467555
496794
446894
603933
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (803676 , 747159 , 802866 , 768227 , 715583 , 654256 , 823720 , 593075 , 603578 , 635636 , 210281 , 823177 , 787379 , 443392 , 736146 , 635833 , 678862 , 502538 , 594577 , 817445 , 577454 , 651039 , 704189 , 799350 , 507814 , 469494 , 447038 , 811208 , 425559 , 562592 , 571711 , 730497 , 593894 , 484944 , 578803 , 490841 , 661970 , 478571 , 607023 , 605529 , 458348 , 767859 , 490261 , 496060 , 454947 , 466573 , 448097 , 636598 , 502537 , 457786 , 647328 , 534617 , 503662 , 515633 , 502539 , 502540 , 457789 , 502518 , 458191 , 609531 , 467555 , 496794 , 446894 , 603933 );
Copy
4
6.44 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
210281
425559
443392
446894
447038
448097
454947
457786
457789
458191
458348
466573
467555
469494
478571
484944
490261
490841
496060
496794
502518
502537
502538
502539
502540
503662
507814
515633
534617
562592
571711
577454
578803
593075
593894
594577
603578
603933
605529
607023
609531
635636
635833
636598
647328
651039
654256
661970
678862
704189
715583
730497
736146
747159
767859
768227
787379
799350
802866
803676
811208
817445
823177
823720
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (210281 , 425559 , 443392 , 446894 , 447038 , 448097 , 454947 , 457786 , 457789 , 458191 , 458348 , 466573 , 467555 , 469494 , 478571 , 484944 , 490261 , 490841 , 496060 , 496794 , 502518 , 502537 , 502538 , 502539 , 502540 , 503662 , 507814 , 515633 , 534617 , 562592 , 571711 , 577454 , 578803 , 593075 , 593894 , 594577 , 603578 , 603933 , 605529 , 607023 , 609531 , 635636 , 635833 , 636598 , 647328 , 651039 , 654256 , 661970 , 678862 , 704189 , 715583 , 730497 , 736146 , 747159 , 767859 , 768227 , 787379 , 799350 , 802866 , 803676 , 811208 , 817445 , 823177 , 823720 );
Copy
5
135.01 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
210281
425559
443392
446894
447038
448097
454947
457786
457789
458191
458348
466573
467555
469494
478571
484944
490261
490841
496060
496794
502518
502537
502538
502539
502540
503662
507814
515633
534617
562592
571711
577454
578803
593075
593894
594577
603578
603933
605529
607023
609531
635636
635833
636598
647328
651039
654256
661970
678862
704189
715583
730497
736146
747159
767859
768227
787379
799350
802866
803676
811208
817445
823177
823720
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (210281 , 425559 , 443392 , 446894 , 447038 , 448097 , 454947 , 457786 , 457789 , 458191 , 458348 , 466573 , 467555 , 469494 , 478571 , 484944 , 490261 , 490841 , 496060 , 496794 , 502518 , 502537 , 502538 , 502539 , 502540 , 503662 , 507814 , 515633 , 534617 , 562592 , 571711 , 577454 , 578803 , 593075 , 593894 , 594577 , 603578 , 603933 , 605529 , 607023 , 609531 , 635636 , 635833 , 636598 , 647328 , 651039 , 654256 , 661970 , 678862 , 704189 , 715583 , 730497 , 736146 , 747159 , 767859 , 768227 , 787379 , 799350 , 802866 , 803676 , 811208 , 817445 , 823177 , 823720 );
Copy