3
15.38 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
477100
534320
511359
526212
542567
582520
560486
584484
618146
588253
589427
614621
596880
606494
628391
601959
446238
452813
472764
446682
518006
479002
527198
559039
582439
584415
562731
577450
652544
568589
613268
602739
619308
439641
448812
516462
524897
509969
497409
515972
551165
562397
577102
595754
610404
587595
607230
515659
575436
654197
612519
595243
627139
627769
620262
426654
420391
521043
538290
510299
623413
593596
589041
520763
522556
616996
527915
]
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 (477100 , 534320 , 511359 , 526212 , 542567 , 582520 , 560486 , 584484 , 618146 , 588253 , 589427 , 614621 , 596880 , 606494 , 628391 , 601959 , 446238 , 452813 , 472764 , 446682 , 518006 , 479002 , 527198 , 559039 , 582439 , 584415 , 562731 , 577450 , 652544 , 568589 , 613268 , 602739 , 619308 , 439641 , 448812 , 516462 , 524897 , 509969 , 497409 , 515972 , 551165 , 562397 , 577102 , 595754 , 610404 , 587595 , 607230 , 515659 , 575436 , 654197 , 612519 , 595243 , 627139 , 627769 , 620262 , 426654 , 420391 , 521043 , 538290 , 510299 , 623413 , 593596 , 589041 , 520763 , 522556 , 616996 , 527915 );
Copy
4
2.68 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
420391
426654
439641
446238
446682
448812
452813
472764
477100
479002
497409
509969
510299
511359
515659
515972
516462
518006
520763
521043
522556
524897
526212
527198
527915
534320
538290
542567
551165
559039
560486
562397
562731
568589
575436
577102
577450
582439
582520
584415
584484
587595
588253
589041
589427
593596
595243
595754
596880
601959
602739
606494
607230
610404
612519
613268
614621
616996
618146
619308
620262
623413
627139
627769
628391
652544
654197
]
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 (420391 , 426654 , 439641 , 446238 , 446682 , 448812 , 452813 , 472764 , 477100 , 479002 , 497409 , 509969 , 510299 , 511359 , 515659 , 515972 , 516462 , 518006 , 520763 , 521043 , 522556 , 524897 , 526212 , 527198 , 527915 , 534320 , 538290 , 542567 , 551165 , 559039 , 560486 , 562397 , 562731 , 568589 , 575436 , 577102 , 577450 , 582439 , 582520 , 584415 , 584484 , 587595 , 588253 , 589041 , 589427 , 593596 , 595243 , 595754 , 596880 , 601959 , 602739 , 606494 , 607230 , 610404 , 612519 , 613268 , 614621 , 616996 , 618146 , 619308 , 620262 , 623413 , 627139 , 627769 , 628391 , 652544 , 654197 );
Copy
5
122.44 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
420391
426654
439641
446238
446682
448812
452813
472764
477100
479002
497409
509969
510299
511359
515659
515972
516462
518006
520763
521043
522556
524897
526212
527198
527915
534320
538290
542567
551165
559039
560486
562397
562731
568589
575436
577102
577450
582439
582520
584415
584484
587595
588253
589041
589427
593596
595243
595754
596880
601959
602739
606494
607230
610404
612519
613268
614621
616996
618146
619308
620262
623413
627139
627769
628391
652544
654197
]
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 (420391 , 426654 , 439641 , 446238 , 446682 , 448812 , 452813 , 472764 , 477100 , 479002 , 497409 , 509969 , 510299 , 511359 , 515659 , 515972 , 516462 , 518006 , 520763 , 521043 , 522556 , 524897 , 526212 , 527198 , 527915 , 534320 , 538290 , 542567 , 551165 , 559039 , 560486 , 562397 , 562731 , 568589 , 575436 , 577102 , 577450 , 582439 , 582520 , 584415 , 584484 , 587595 , 588253 , 589041 , 589427 , 593596 , 595243 , 595754 , 596880 , 601959 , 602739 , 606494 , 607230 , 610404 , 612519 , 613268 , 614621 , 616996 , 618146 , 619308 , 620262 , 623413 , 627139 , 627769 , 628391 , 652544 , 654197 );
Copy