3
10.44 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
672040
607340
719374
672147
580330
821558
820484
822148
822886
821077
822956
821025
699552
747027
699560
746224
721276
827305
487143
390213
599800
709521
709621
595859
740052
390840
470333
492271
504597
551148
592345
446303
516943
576397
420342
531204
597532
580383
690508
693540
820655
822652
702232
713285
690455
691542
687146
691235
690468
618343
553087
673137
405584
671952
715449
690366
580735
451453
580721
598736
595451
525640
470227
492477
580715
451589
410712
493124
]
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 (672040 , 607340 , 719374 , 672147 , 580330 , 821558 , 820484 , 822148 , 822886 , 821077 , 822956 , 821025 , 699552 , 747027 , 699560 , 746224 , 721276 , 827305 , 487143 , 390213 , 599800 , 709521 , 709621 , 595859 , 740052 , 390840 , 470333 , 492271 , 504597 , 551148 , 592345 , 446303 , 516943 , 576397 , 420342 , 531204 , 597532 , 580383 , 690508 , 693540 , 820655 , 822652 , 702232 , 713285 , 690455 , 691542 , 687146 , 691235 , 690468 , 618343 , 553087 , 673137 , 405584 , 671952 , 715449 , 690366 , 580735 , 451453 , 580721 , 598736 , 595451 , 525640 , 470227 , 492477 , 580715 , 451589 , 410712 , 493124 );
Copy
4
3.19 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
390213
390840
405584
410712
420342
446303
451453
451589
470227
470333
487143
492271
492477
493124
504597
516943
525640
531204
551148
553087
576397
580330
580383
580715
580721
580735
592345
595451
595859
597532
598736
599800
607340
618343
671952
672040
672147
673137
687146
690366
690455
690468
690508
691235
691542
693540
699552
699560
702232
709521
709621
713285
715449
719374
721276
740052
746224
747027
820484
820655
821025
821077
821558
822148
822652
822886
822956
827305
]
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 (390213 , 390840 , 405584 , 410712 , 420342 , 446303 , 451453 , 451589 , 470227 , 470333 , 487143 , 492271 , 492477 , 493124 , 504597 , 516943 , 525640 , 531204 , 551148 , 553087 , 576397 , 580330 , 580383 , 580715 , 580721 , 580735 , 592345 , 595451 , 595859 , 597532 , 598736 , 599800 , 607340 , 618343 , 671952 , 672040 , 672147 , 673137 , 687146 , 690366 , 690455 , 690468 , 690508 , 691235 , 691542 , 693540 , 699552 , 699560 , 702232 , 709521 , 709621 , 713285 , 715449 , 719374 , 721276 , 740052 , 746224 , 747027 , 820484 , 820655 , 821025 , 821077 , 821558 , 822148 , 822652 , 822886 , 822956 , 827305 );
Copy
5
82.29 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
390213
390840
405584
410712
420342
446303
451453
451589
470227
470333
487143
492271
492477
493124
504597
516943
525640
531204
551148
553087
576397
580330
580383
580715
580721
580735
592345
595451
595859
597532
598736
599800
607340
618343
671952
672040
672147
673137
687146
690366
690455
690468
690508
691235
691542
693540
699552
699560
702232
709521
709621
713285
715449
719374
721276
740052
746224
747027
820484
820655
821025
821077
821558
822148
822652
822886
822956
827305
]
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 (390213 , 390840 , 405584 , 410712 , 420342 , 446303 , 451453 , 451589 , 470227 , 470333 , 487143 , 492271 , 492477 , 493124 , 504597 , 516943 , 525640 , 531204 , 551148 , 553087 , 576397 , 580330 , 580383 , 580715 , 580721 , 580735 , 592345 , 595451 , 595859 , 597532 , 598736 , 599800 , 607340 , 618343 , 671952 , 672040 , 672147 , 673137 , 687146 , 690366 , 690455 , 690468 , 690508 , 691235 , 691542 , 693540 , 699552 , 699560 , 702232 , 709521 , 709621 , 713285 , 715449 , 719374 , 721276 , 740052 , 746224 , 747027 , 820484 , 820655 , 821025 , 821077 , 821558 , 822148 , 822652 , 822886 , 822956 , 827305 );
Copy