4
12.64 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
661043
453164
466402
543317
526569
705347
702756
740326
381947
794427
388005
666011
801932
771424
791837
761515
689879
740090
508602
725447
725610
729087
753429
771437
715370
456724
617812
604966
386671
810008
635391
786026
803714
483565
478101
517064
712108
554610
802912
599494
419032
407533
385607
476310
584107
453091
470311
578531
522063
666719
597160
605108
477555
578162
408197
453162
584366
478301
483581
516393
428833
519371
494684
]
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 (661043 , 453164 , 466402 , 543317 , 526569 , 705347 , 702756 , 740326 , 381947 , 794427 , 388005 , 666011 , 801932 , 771424 , 791837 , 761515 , 689879 , 740090 , 508602 , 725447 , 725610 , 729087 , 753429 , 771437 , 715370 , 456724 , 617812 , 604966 , 386671 , 810008 , 635391 , 786026 , 803714 , 483565 , 478101 , 517064 , 712108 , 554610 , 802912 , 599494 , 419032 , 407533 , 385607 , 476310 , 584107 , 453091 , 470311 , 578531 , 522063 , 666719 , 597160 , 605108 , 477555 , 578162 , 408197 , 453162 , 584366 , 478301 , 483581 , 516393 , 428833 , 519371 , 494684 );
Copy
5
213.43 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
381947
385607
386671
388005
407533
408197
419032
428833
453091
453162
453164
456724
466402
470311
476310
477555
478101
478301
483565
483581
494684
508602
516393
517064
519371
522063
526569
543317
554610
578162
578531
584107
584366
597160
599494
604966
605108
617812
635391
661043
666011
666719
689879
702756
705347
712108
715370
725447
725610
729087
740090
740326
753429
761515
771424
771437
786026
791837
794427
801932
802912
803714
810008
]
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 (381947 , 385607 , 386671 , 388005 , 407533 , 408197 , 419032 , 428833 , 453091 , 453162 , 453164 , 456724 , 466402 , 470311 , 476310 , 477555 , 478101 , 478301 , 483565 , 483581 , 494684 , 508602 , 516393 , 517064 , 519371 , 522063 , 526569 , 543317 , 554610 , 578162 , 578531 , 584107 , 584366 , 597160 , 599494 , 604966 , 605108 , 617812 , 635391 , 661043 , 666011 , 666719 , 689879 , 702756 , 705347 , 712108 , 715370 , 725447 , 725610 , 729087 , 740090 , 740326 , 753429 , 761515 , 771424 , 771437 , 786026 , 791837 , 794427 , 801932 , 802912 , 803714 , 810008 );
Copy
6
84.09 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
381947
385607
386671
388005
407533
408197
419032
428833
453091
453162
453164
456724
466402
470311
476310
477555
478101
478301
483565
483581
494684
508602
516393
517064
519371
522063
526569
543317
554610
578162
578531
584107
584366
597160
599494
604966
605108
617812
635391
661043
666011
666719
689879
702756
705347
712108
715370
725447
725610
729087
740090
740326
753429
761515
771424
771437
786026
791837
794427
801932
802912
803714
810008
]
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 (381947 , 385607 , 386671 , 388005 , 407533 , 408197 , 419032 , 428833 , 453091 , 453162 , 453164 , 456724 , 466402 , 470311 , 476310 , 477555 , 478101 , 478301 , 483565 , 483581 , 494684 , 508602 , 516393 , 517064 , 519371 , 522063 , 526569 , 543317 , 554610 , 578162 , 578531 , 584107 , 584366 , 597160 , 599494 , 604966 , 605108 , 617812 , 635391 , 661043 , 666011 , 666719 , 689879 , 702756 , 705347 , 712108 , 715370 , 725447 , 725610 , 729087 , 740090 , 740326 , 753429 , 761515 , 771424 , 771437 , 786026 , 791837 , 794427 , 801932 , 802912 , 803714 , 810008 );
Copy