3
13.82 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
614745
518212
527998
492267
561828
430444
528089
471628
523260
552319
519930
421287
412343
438765
560193
565153
495230
623615
590427
618723
411328
425975
401956
403240
520407
398958
541780
532129
515122
467311
560215
442363
613174
512927
541642
611375
624846
624847
407562
614603
608242
439819
525287
531920
395935
474418
620098
737228
483223
621273
550662
509429
464386
567187
550615
464549
560511
421030
525840
554784
560230
457204
464438
541611
594121
485462
466103
490204
]
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 (614745 , 518212 , 527998 , 492267 , 561828 , 430444 , 528089 , 471628 , 523260 , 552319 , 519930 , 421287 , 412343 , 438765 , 560193 , 565153 , 495230 , 623615 , 590427 , 618723 , 411328 , 425975 , 401956 , 403240 , 520407 , 398958 , 541780 , 532129 , 515122 , 467311 , 560215 , 442363 , 613174 , 512927 , 541642 , 611375 , 624846 , 624847 , 407562 , 614603 , 608242 , 439819 , 525287 , 531920 , 395935 , 474418 , 620098 , 737228 , 483223 , 621273 , 550662 , 509429 , 464386 , 567187 , 550615 , 464549 , 560511 , 421030 , 525840 , 554784 , 560230 , 457204 , 464438 , 541611 , 594121 , 485462 , 466103 , 490204 );
Copy
4
2.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
395935
398958
401956
403240
407562
411328
412343
421030
421287
425975
430444
438765
439819
442363
457204
464386
464438
464549
466103
467311
471628
474418
483223
485462
490204
492267
495230
509429
512927
515122
518212
519930
520407
523260
525287
525840
527998
528089
531920
532129
541611
541642
541780
550615
550662
552319
554784
560193
560215
560230
560511
561828
565153
567187
590427
594121
608242
611375
613174
614603
614745
618723
620098
621273
623615
624846
624847
737228
]
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 (395935 , 398958 , 401956 , 403240 , 407562 , 411328 , 412343 , 421030 , 421287 , 425975 , 430444 , 438765 , 439819 , 442363 , 457204 , 464386 , 464438 , 464549 , 466103 , 467311 , 471628 , 474418 , 483223 , 485462 , 490204 , 492267 , 495230 , 509429 , 512927 , 515122 , 518212 , 519930 , 520407 , 523260 , 525287 , 525840 , 527998 , 528089 , 531920 , 532129 , 541611 , 541642 , 541780 , 550615 , 550662 , 552319 , 554784 , 560193 , 560215 , 560230 , 560511 , 561828 , 565153 , 567187 , 590427 , 594121 , 608242 , 611375 , 613174 , 614603 , 614745 , 618723 , 620098 , 621273 , 623615 , 624846 , 624847 , 737228 );
Copy
5
89.47 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
395935
398958
401956
403240
407562
411328
412343
421030
421287
425975
430444
438765
439819
442363
457204
464386
464438
464549
466103
467311
471628
474418
483223
485462
490204
492267
495230
509429
512927
515122
518212
519930
520407
523260
525287
525840
527998
528089
531920
532129
541611
541642
541780
550615
550662
552319
554784
560193
560215
560230
560511
561828
565153
567187
590427
594121
608242
611375
613174
614603
614745
618723
620098
621273
623615
624846
624847
737228
]
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 (395935 , 398958 , 401956 , 403240 , 407562 , 411328 , 412343 , 421030 , 421287 , 425975 , 430444 , 438765 , 439819 , 442363 , 457204 , 464386 , 464438 , 464549 , 466103 , 467311 , 471628 , 474418 , 483223 , 485462 , 490204 , 492267 , 495230 , 509429 , 512927 , 515122 , 518212 , 519930 , 520407 , 523260 , 525287 , 525840 , 527998 , 528089 , 531920 , 532129 , 541611 , 541642 , 541780 , 550615 , 550662 , 552319 , 554784 , 560193 , 560215 , 560230 , 560511 , 561828 , 565153 , 567187 , 590427 , 594121 , 608242 , 611375 , 613174 , 614603 , 614745 , 618723 , 620098 , 621273 , 623615 , 624846 , 624847 , 737228 );
Copy