4
10.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
803844
819859
713035
808966
806285
702757
783660
797108
671729
774781
777426
787795
774800
808987
743982
529696
800175
813145
411073
774416
464046
643296
808768
740155
743877
761116
808636
396018
680210
686009
676160
763283
743935
708605
435590
560394
683228
611167
808466
756409
407569
61187
404192
423306
497078
365348
435606
448738
494677
703080
772327
747966
771881
522444
489871
474625
544088
696172
714508
740212
469648
518391
523907
416365
550972
521310
579417
584336
553108
]
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 (803844 , 819859 , 713035 , 808966 , 806285 , 702757 , 783660 , 797108 , 671729 , 774781 , 777426 , 787795 , 774800 , 808987 , 743982 , 529696 , 800175 , 813145 , 411073 , 774416 , 464046 , 643296 , 808768 , 740155 , 743877 , 761116 , 808636 , 396018 , 680210 , 686009 , 676160 , 763283 , 743935 , 708605 , 435590 , 560394 , 683228 , 611167 , 808466 , 756409 , 407569 , 61187 , 404192 , 423306 , 497078 , 365348 , 435606 , 448738 , 494677 , 703080 , 772327 , 747966 , 771881 , 522444 , 489871 , 474625 , 544088 , 696172 , 714508 , 740212 , 469648 , 518391 , 523907 , 416365 , 550972 , 521310 , 579417 , 584336 , 553108 );
Copy
5
2.55 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
61187
365348
396018
404192
407569
411073
416365
423306
435590
435606
448738
464046
469648
474625
489871
494677
497078
518391
521310
522444
523907
529696
544088
550972
553108
560394
579417
584336
611167
643296
671729
676160
680210
683228
686009
696172
702757
703080
708605
713035
714508
740155
740212
743877
743935
743982
747966
756409
761116
763283
771881
772327
774416
774781
774800
777426
783660
787795
797108
800175
803844
806285
808466
808636
808768
808966
808987
813145
819859
]
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 (61187 , 365348 , 396018 , 404192 , 407569 , 411073 , 416365 , 423306 , 435590 , 435606 , 448738 , 464046 , 469648 , 474625 , 489871 , 494677 , 497078 , 518391 , 521310 , 522444 , 523907 , 529696 , 544088 , 550972 , 553108 , 560394 , 579417 , 584336 , 611167 , 643296 , 671729 , 676160 , 680210 , 683228 , 686009 , 696172 , 702757 , 703080 , 708605 , 713035 , 714508 , 740155 , 740212 , 743877 , 743935 , 743982 , 747966 , 756409 , 761116 , 763283 , 771881 , 772327 , 774416 , 774781 , 774800 , 777426 , 783660 , 787795 , 797108 , 800175 , 803844 , 806285 , 808466 , 808636 , 808768 , 808966 , 808987 , 813145 , 819859 );
Copy
6
93.75 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
61187
365348
396018
404192
407569
411073
416365
423306
435590
435606
448738
464046
469648
474625
489871
494677
497078
518391
521310
522444
523907
529696
544088
550972
553108
560394
579417
584336
611167
643296
671729
676160
680210
683228
686009
696172
702757
703080
708605
713035
714508
740155
740212
743877
743935
743982
747966
756409
761116
763283
771881
772327
774416
774781
774800
777426
783660
787795
797108
800175
803844
806285
808466
808636
808768
808966
808987
813145
819859
]
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 (61187 , 365348 , 396018 , 404192 , 407569 , 411073 , 416365 , 423306 , 435590 , 435606 , 448738 , 464046 , 469648 , 474625 , 489871 , 494677 , 497078 , 518391 , 521310 , 522444 , 523907 , 529696 , 544088 , 550972 , 553108 , 560394 , 579417 , 584336 , 611167 , 643296 , 671729 , 676160 , 680210 , 683228 , 686009 , 696172 , 702757 , 703080 , 708605 , 713035 , 714508 , 740155 , 740212 , 743877 , 743935 , 743982 , 747966 , 756409 , 761116 , 763283 , 771881 , 772327 , 774416 , 774781 , 774800 , 777426 , 783660 , 787795 , 797108 , 800175 , 803844 , 806285 , 808466 , 808636 , 808768 , 808966 , 808987 , 813145 , 819859 );
Copy