3
10.55 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
592282
81496
827615
766366
589259
744664
583325
779885
607556
337088
635034
811661
535136
547684
581278
650478
744895
769334
396335
594063
746129
793594
810179
735269
731206
453593
455040
650859
622280
793771
640667
442521
715865
603340
639674
793500
8005
519937
533639
552448
613536
731124
746318
731229
768401
709131
394453
523589
674378
559502
602711
479257
512752
518792
512753
410124
527226
698821
512743
510562
464834
583037
499978
525447
426458
525133
565983
]
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 (592282 , 81496 , 827615 , 766366 , 589259 , 744664 , 583325 , 779885 , 607556 , 337088 , 635034 , 811661 , 535136 , 547684 , 581278 , 650478 , 744895 , 769334 , 396335 , 594063 , 746129 , 793594 , 810179 , 735269 , 731206 , 453593 , 455040 , 650859 , 622280 , 793771 , 640667 , 442521 , 715865 , 603340 , 639674 , 793500 , 8005 , 519937 , 533639 , 552448 , 613536 , 731124 , 746318 , 731229 , 768401 , 709131 , 394453 , 523589 , 674378 , 559502 , 602711 , 479257 , 512752 , 518792 , 512753 , 410124 , 527226 , 698821 , 512743 , 510562 , 464834 , 583037 , 499978 , 525447 , 426458 , 525133 , 565983 );
Copy
4
3.20 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
8005
81496
337088
394453
396335
410124
426458
442521
453593
455040
464834
479257
499978
510562
512743
512752
512753
518792
519937
523589
525133
525447
527226
533639
535136
547684
552448
559502
565983
581278
583037
583325
589259
592282
594063
602711
603340
607556
613536
622280
635034
639674
640667
650478
650859
674378
698821
709131
715865
731124
731206
731229
735269
744664
744895
746129
746318
766366
768401
769334
779885
793500
793594
793771
810179
811661
827615
]
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 (8005 , 81496 , 337088 , 394453 , 396335 , 410124 , 426458 , 442521 , 453593 , 455040 , 464834 , 479257 , 499978 , 510562 , 512743 , 512752 , 512753 , 518792 , 519937 , 523589 , 525133 , 525447 , 527226 , 533639 , 535136 , 547684 , 552448 , 559502 , 565983 , 581278 , 583037 , 583325 , 589259 , 592282 , 594063 , 602711 , 603340 , 607556 , 613536 , 622280 , 635034 , 639674 , 640667 , 650478 , 650859 , 674378 , 698821 , 709131 , 715865 , 731124 , 731206 , 731229 , 735269 , 744664 , 744895 , 746129 , 746318 , 766366 , 768401 , 769334 , 779885 , 793500 , 793594 , 793771 , 810179 , 811661 , 827615 );
Copy
5
88.54 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
8005
81496
337088
394453
396335
410124
426458
442521
453593
455040
464834
479257
499978
510562
512743
512752
512753
518792
519937
523589
525133
525447
527226
533639
535136
547684
552448
559502
565983
581278
583037
583325
589259
592282
594063
602711
603340
607556
613536
622280
635034
639674
640667
650478
650859
674378
698821
709131
715865
731124
731206
731229
735269
744664
744895
746129
746318
766366
768401
769334
779885
793500
793594
793771
810179
811661
827615
]
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 (8005 , 81496 , 337088 , 394453 , 396335 , 410124 , 426458 , 442521 , 453593 , 455040 , 464834 , 479257 , 499978 , 510562 , 512743 , 512752 , 512753 , 518792 , 519937 , 523589 , 525133 , 525447 , 527226 , 533639 , 535136 , 547684 , 552448 , 559502 , 565983 , 581278 , 583037 , 583325 , 589259 , 592282 , 594063 , 602711 , 603340 , 607556 , 613536 , 622280 , 635034 , 639674 , 640667 , 650478 , 650859 , 674378 , 698821 , 709131 , 715865 , 731124 , 731206 , 731229 , 735269 , 744664 , 744895 , 746129 , 746318 , 766366 , 768401 , 769334 , 779885 , 793500 , 793594 , 793771 , 810179 , 811661 , 827615 );
Copy