3
8.88 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
531252
532999
535342
535358
531104
532658
533063
533942
687529
681478
595595
635222
640721
586555
598309
602603
612343
632695
600365
606738
606717
809533
724493
618399
631193
471177
531215
531202
532756
536249
560425
673659
675458
586190
599977
600312
612335
595041
597199
639718
639790
748957
632646
531074
531205
584336
645236
678131
574957
612381
633491
600022
632635
645284
649134
695122
578488
639818
603703
604960
458719
540535
572003
599927
635243
599865
587220
633435
]
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 (531252 , 532999 , 535342 , 535358 , 531104 , 532658 , 533063 , 533942 , 687529 , 681478 , 595595 , 635222 , 640721 , 586555 , 598309 , 602603 , 612343 , 632695 , 600365 , 606738 , 606717 , 809533 , 724493 , 618399 , 631193 , 471177 , 531215 , 531202 , 532756 , 536249 , 560425 , 673659 , 675458 , 586190 , 599977 , 600312 , 612335 , 595041 , 597199 , 639718 , 639790 , 748957 , 632646 , 531074 , 531205 , 584336 , 645236 , 678131 , 574957 , 612381 , 633491 , 600022 , 632635 , 645284 , 649134 , 695122 , 578488 , 639818 , 603703 , 604960 , 458719 , 540535 , 572003 , 599927 , 635243 , 599865 , 587220 , 633435 );
Copy
4
2.25 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
458719
471177
531074
531104
531202
531205
531215
531252
532658
532756
532999
533063
533942
535342
535358
536249
540535
560425
572003
574957
578488
584336
586190
586555
587220
595041
595595
597199
598309
599865
599927
599977
600022
600312
600365
602603
603703
604960
606717
606738
612335
612343
612381
618399
631193
632635
632646
632695
633435
633491
635222
635243
639718
639790
639818
640721
645236
645284
649134
673659
675458
678131
681478
687529
695122
724493
748957
809533
]
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 (458719 , 471177 , 531074 , 531104 , 531202 , 531205 , 531215 , 531252 , 532658 , 532756 , 532999 , 533063 , 533942 , 535342 , 535358 , 536249 , 540535 , 560425 , 572003 , 574957 , 578488 , 584336 , 586190 , 586555 , 587220 , 595041 , 595595 , 597199 , 598309 , 599865 , 599927 , 599977 , 600022 , 600312 , 600365 , 602603 , 603703 , 604960 , 606717 , 606738 , 612335 , 612343 , 612381 , 618399 , 631193 , 632635 , 632646 , 632695 , 633435 , 633491 , 635222 , 635243 , 639718 , 639790 , 639818 , 640721 , 645236 , 645284 , 649134 , 673659 , 675458 , 678131 , 681478 , 687529 , 695122 , 724493 , 748957 , 809533 );
Copy
5
138.86 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
458719
471177
531074
531104
531202
531205
531215
531252
532658
532756
532999
533063
533942
535342
535358
536249
540535
560425
572003
574957
578488
584336
586190
586555
587220
595041
595595
597199
598309
599865
599927
599977
600022
600312
600365
602603
603703
604960
606717
606738
612335
612343
612381
618399
631193
632635
632646
632695
633435
633491
635222
635243
639718
639790
639818
640721
645236
645284
649134
673659
675458
678131
681478
687529
695122
724493
748957
809533
]
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 (458719 , 471177 , 531074 , 531104 , 531202 , 531205 , 531215 , 531252 , 532658 , 532756 , 532999 , 533063 , 533942 , 535342 , 535358 , 536249 , 540535 , 560425 , 572003 , 574957 , 578488 , 584336 , 586190 , 586555 , 587220 , 595041 , 595595 , 597199 , 598309 , 599865 , 599927 , 599977 , 600022 , 600312 , 600365 , 602603 , 603703 , 604960 , 606717 , 606738 , 612335 , 612343 , 612381 , 618399 , 631193 , 632635 , 632646 , 632695 , 633435 , 633491 , 635222 , 635243 , 639718 , 639790 , 639818 , 640721 , 645236 , 645284 , 649134 , 673659 , 675458 , 678131 , 681478 , 687529 , 695122 , 724493 , 748957 , 809533 );
Copy