3
10.25 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
419200
420295
476887
447608
532778
722380
594201
432179
416680
444194
514399
497667
803827
545224
416512
449086
462850
683446
770382
471118
414116
470458
765222
470414
787511
486741
584348
598728
765262
765251
544404
746094
787808
594339
752710
766939
534772
452729
627442
787506
500779
439240
515548
506692
562585
568707
752648
449946
712633
591604
628553
806931
419646
505317
814434
621765
779840
755079
429844
547496
595209
482283
609892
]
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 (419200 , 420295 , 476887 , 447608 , 532778 , 722380 , 594201 , 432179 , 416680 , 444194 , 514399 , 497667 , 803827 , 545224 , 416512 , 449086 , 462850 , 683446 , 770382 , 471118 , 414116 , 470458 , 765222 , 470414 , 787511 , 486741 , 584348 , 598728 , 765262 , 765251 , 544404 , 746094 , 787808 , 594339 , 752710 , 766939 , 534772 , 452729 , 627442 , 787506 , 500779 , 439240 , 515548 , 506692 , 562585 , 568707 , 752648 , 449946 , 712633 , 591604 , 628553 , 806931 , 419646 , 505317 , 814434 , 621765 , 779840 , 755079 , 429844 , 547496 , 595209 , 482283 , 609892 );
Copy
4
3.51 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
414116
416512
416680
419200
419646
420295
429844
432179
439240
444194
447608
449086
449946
452729
462850
470414
470458
471118
476887
482283
486741
497667
500779
505317
506692
514399
515548
532778
534772
544404
545224
547496
562585
568707
584348
591604
594201
594339
595209
598728
609892
621765
627442
628553
683446
712633
722380
746094
752648
752710
755079
765222
765251
765262
766939
770382
779840
787506
787511
787808
803827
806931
814434
]
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 (414116 , 416512 , 416680 , 419200 , 419646 , 420295 , 429844 , 432179 , 439240 , 444194 , 447608 , 449086 , 449946 , 452729 , 462850 , 470414 , 470458 , 471118 , 476887 , 482283 , 486741 , 497667 , 500779 , 505317 , 506692 , 514399 , 515548 , 532778 , 534772 , 544404 , 545224 , 547496 , 562585 , 568707 , 584348 , 591604 , 594201 , 594339 , 595209 , 598728 , 609892 , 621765 , 627442 , 628553 , 683446 , 712633 , 722380 , 746094 , 752648 , 752710 , 755079 , 765222 , 765251 , 765262 , 766939 , 770382 , 779840 , 787506 , 787511 , 787808 , 803827 , 806931 , 814434 );
Copy
5
79.00 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
414116
416512
416680
419200
419646
420295
429844
432179
439240
444194
447608
449086
449946
452729
462850
470414
470458
471118
476887
482283
486741
497667
500779
505317
506692
514399
515548
532778
534772
544404
545224
547496
562585
568707
584348
591604
594201
594339
595209
598728
609892
621765
627442
628553
683446
712633
722380
746094
752648
752710
755079
765222
765251
765262
766939
770382
779840
787506
787511
787808
803827
806931
814434
]
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 (414116 , 416512 , 416680 , 419200 , 419646 , 420295 , 429844 , 432179 , 439240 , 444194 , 447608 , 449086 , 449946 , 452729 , 462850 , 470414 , 470458 , 471118 , 476887 , 482283 , 486741 , 497667 , 500779 , 505317 , 506692 , 514399 , 515548 , 532778 , 534772 , 544404 , 545224 , 547496 , 562585 , 568707 , 584348 , 591604 , 594201 , 594339 , 595209 , 598728 , 609892 , 621765 , 627442 , 628553 , 683446 , 712633 , 722380 , 746094 , 752648 , 752710 , 755079 , 765222 , 765251 , 765262 , 766939 , 770382 , 779840 , 787506 , 787511 , 787808 , 803827 , 806931 , 814434 );
Copy