3
11.43 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
468238
482973
555740
575338
597267
812364
471497
431771
426697
449838
476425
430516
483838
488275
495828
491095
503642
408306
583448
395856
429345
815594
540677
461122
581916
700996
597234
633439
637096
637120
759344
482850
528620
551944
680111
597230
640728
597233
642053
449799
460296
519492
493951
815963
513006
677672
597266
628368
397548
641983
733870
635220
599545
395571
523205
537199
633446
651647
637460
608431
536584
524628
590878
]
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 (468238 , 482973 , 555740 , 575338 , 597267 , 812364 , 471497 , 431771 , 426697 , 449838 , 476425 , 430516 , 483838 , 488275 , 495828 , 491095 , 503642 , 408306 , 583448 , 395856 , 429345 , 815594 , 540677 , 461122 , 581916 , 700996 , 597234 , 633439 , 637096 , 637120 , 759344 , 482850 , 528620 , 551944 , 680111 , 597230 , 640728 , 597233 , 642053 , 449799 , 460296 , 519492 , 493951 , 815963 , 513006 , 677672 , 597266 , 628368 , 397548 , 641983 , 733870 , 635220 , 599545 , 395571 , 523205 , 537199 , 633446 , 651647 , 637460 , 608431 , 536584 , 524628 , 590878 );
Copy
4
2.44 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
395571
395856
397548
408306
426697
429345
430516
431771
449799
449838
460296
461122
468238
471497
476425
482850
482973
483838
488275
491095
493951
495828
503642
513006
519492
523205
524628
528620
536584
537199
540677
551944
555740
575338
581916
583448
590878
597230
597233
597234
597266
597267
599545
608431
628368
633439
633446
635220
637096
637120
637460
640728
641983
642053
651647
677672
680111
700996
733870
759344
812364
815594
815963
]
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 (395571 , 395856 , 397548 , 408306 , 426697 , 429345 , 430516 , 431771 , 449799 , 449838 , 460296 , 461122 , 468238 , 471497 , 476425 , 482850 , 482973 , 483838 , 488275 , 491095 , 493951 , 495828 , 503642 , 513006 , 519492 , 523205 , 524628 , 528620 , 536584 , 537199 , 540677 , 551944 , 555740 , 575338 , 581916 , 583448 , 590878 , 597230 , 597233 , 597234 , 597266 , 597267 , 599545 , 608431 , 628368 , 633439 , 633446 , 635220 , 637096 , 637120 , 637460 , 640728 , 641983 , 642053 , 651647 , 677672 , 680111 , 700996 , 733870 , 759344 , 812364 , 815594 , 815963 );
Copy
5
79.97 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
395571
395856
397548
408306
426697
429345
430516
431771
449799
449838
460296
461122
468238
471497
476425
482850
482973
483838
488275
491095
493951
495828
503642
513006
519492
523205
524628
528620
536584
537199
540677
551944
555740
575338
581916
583448
590878
597230
597233
597234
597266
597267
599545
608431
628368
633439
633446
635220
637096
637120
637460
640728
641983
642053
651647
677672
680111
700996
733870
759344
812364
815594
815963
]
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 (395571 , 395856 , 397548 , 408306 , 426697 , 429345 , 430516 , 431771 , 449799 , 449838 , 460296 , 461122 , 468238 , 471497 , 476425 , 482850 , 482973 , 483838 , 488275 , 491095 , 493951 , 495828 , 503642 , 513006 , 519492 , 523205 , 524628 , 528620 , 536584 , 537199 , 540677 , 551944 , 555740 , 575338 , 581916 , 583448 , 590878 , 597230 , 597233 , 597234 , 597266 , 597267 , 599545 , 608431 , 628368 , 633439 , 633446 , 635220 , 637096 , 637120 , 637460 , 640728 , 641983 , 642053 , 651647 , 677672 , 680111 , 700996 , 733870 , 759344 , 812364 , 815594 , 815963 );
Copy