3
13.32 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
392754
573273
552270
506335
424200
603785
404743
591432
681310
560208
668528
588296
629961
695163
595667
614056
425070
411854
535019
531172
641455
507767
457674
565412
621767
520819
636290
632291
528402
624875
440962
444165
424190
518170
479967
404316
556661
646229
421151
501179
537203
541857
517844
472137
524176
482240
505814
607707
439767
516155
540511
451821
538815
536359
406698
552266
545501
596851
454709
635215
430444
402141
582624
533966
639334
528011
469409
489112
606799
]
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 (392754 , 573273 , 552270 , 506335 , 424200 , 603785 , 404743 , 591432 , 681310 , 560208 , 668528 , 588296 , 629961 , 695163 , 595667 , 614056 , 425070 , 411854 , 535019 , 531172 , 641455 , 507767 , 457674 , 565412 , 621767 , 520819 , 636290 , 632291 , 528402 , 624875 , 440962 , 444165 , 424190 , 518170 , 479967 , 404316 , 556661 , 646229 , 421151 , 501179 , 537203 , 541857 , 517844 , 472137 , 524176 , 482240 , 505814 , 607707 , 439767 , 516155 , 540511 , 451821 , 538815 , 536359 , 406698 , 552266 , 545501 , 596851 , 454709 , 635215 , 430444 , 402141 , 582624 , 533966 , 639334 , 528011 , 469409 , 489112 , 606799 );
Copy
4
2.26 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
392754
402141
404316
404743
406698
411854
421151
424190
424200
425070
430444
439767
440962
444165
451821
454709
457674
469409
472137
479967
482240
489112
501179
505814
506335
507767
516155
517844
518170
520819
524176
528011
528402
531172
533966
535019
536359
537203
538815
540511
541857
545501
552266
552270
556661
560208
565412
573273
582624
588296
591432
595667
596851
603785
606799
607707
614056
621767
624875
629961
632291
635215
636290
639334
641455
646229
668528
681310
695163
]
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 (392754 , 402141 , 404316 , 404743 , 406698 , 411854 , 421151 , 424190 , 424200 , 425070 , 430444 , 439767 , 440962 , 444165 , 451821 , 454709 , 457674 , 469409 , 472137 , 479967 , 482240 , 489112 , 501179 , 505814 , 506335 , 507767 , 516155 , 517844 , 518170 , 520819 , 524176 , 528011 , 528402 , 531172 , 533966 , 535019 , 536359 , 537203 , 538815 , 540511 , 541857 , 545501 , 552266 , 552270 , 556661 , 560208 , 565412 , 573273 , 582624 , 588296 , 591432 , 595667 , 596851 , 603785 , 606799 , 607707 , 614056 , 621767 , 624875 , 629961 , 632291 , 635215 , 636290 , 639334 , 641455 , 646229 , 668528 , 681310 , 695163 );
Copy
5
82.24 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
392754
402141
404316
404743
406698
411854
421151
424190
424200
425070
430444
439767
440962
444165
451821
454709
457674
469409
472137
479967
482240
489112
501179
505814
506335
507767
516155
517844
518170
520819
524176
528011
528402
531172
533966
535019
536359
537203
538815
540511
541857
545501
552266
552270
556661
560208
565412
573273
582624
588296
591432
595667
596851
603785
606799
607707
614056
621767
624875
629961
632291
635215
636290
639334
641455
646229
668528
681310
695163
]
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 (392754 , 402141 , 404316 , 404743 , 406698 , 411854 , 421151 , 424190 , 424200 , 425070 , 430444 , 439767 , 440962 , 444165 , 451821 , 454709 , 457674 , 469409 , 472137 , 479967 , 482240 , 489112 , 501179 , 505814 , 506335 , 507767 , 516155 , 517844 , 518170 , 520819 , 524176 , 528011 , 528402 , 531172 , 533966 , 535019 , 536359 , 537203 , 538815 , 540511 , 541857 , 545501 , 552266 , 552270 , 556661 , 560208 , 565412 , 573273 , 582624 , 588296 , 591432 , 595667 , 596851 , 603785 , 606799 , 607707 , 614056 , 621767 , 624875 , 629961 , 632291 , 635215 , 636290 , 639334 , 641455 , 646229 , 668528 , 681310 , 695163 );
Copy