3
10.91 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
398042
185820
773520
804533
398997
727854
717722
672890
696164
621979
644203
722803
739297
386989
464270
761655
563405
742904
533782
742818
459577
818067
476515
416863
736846
471992
543549
740501
471534
435562
447520
504246
443119
454269
588257
544177
467783
741752
457231
480672
513723
512921
510324
460561
741756
568601
670742
501011
454115
466423
490771
459588
462349
524664
443648
441537
381946
529512
523221
467793
490071
420347
470300
475897
487342
651148
623716
462700
551259
]
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 (398042 , 185820 , 773520 , 804533 , 398997 , 727854 , 717722 , 672890 , 696164 , 621979 , 644203 , 722803 , 739297 , 386989 , 464270 , 761655 , 563405 , 742904 , 533782 , 742818 , 459577 , 818067 , 476515 , 416863 , 736846 , 471992 , 543549 , 740501 , 471534 , 435562 , 447520 , 504246 , 443119 , 454269 , 588257 , 544177 , 467783 , 741752 , 457231 , 480672 , 513723 , 512921 , 510324 , 460561 , 741756 , 568601 , 670742 , 501011 , 454115 , 466423 , 490771 , 459588 , 462349 , 524664 , 443648 , 441537 , 381946 , 529512 , 523221 , 467793 , 490071 , 420347 , 470300 , 475897 , 487342 , 651148 , 623716 , 462700 , 551259 );
Copy
4
2.95 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
185820
381946
386989
398042
398997
416863
420347
435562
441537
443119
443648
447520
454115
454269
457231
459577
459588
460561
462349
462700
464270
466423
467783
467793
470300
471534
471992
475897
476515
480672
487342
490071
490771
501011
504246
510324
512921
513723
523221
524664
529512
533782
543549
544177
551259
563405
568601
588257
621979
623716
644203
651148
670742
672890
696164
717722
722803
727854
736846
739297
740501
741752
741756
742818
742904
761655
773520
804533
818067
]
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 (185820 , 381946 , 386989 , 398042 , 398997 , 416863 , 420347 , 435562 , 441537 , 443119 , 443648 , 447520 , 454115 , 454269 , 457231 , 459577 , 459588 , 460561 , 462349 , 462700 , 464270 , 466423 , 467783 , 467793 , 470300 , 471534 , 471992 , 475897 , 476515 , 480672 , 487342 , 490071 , 490771 , 501011 , 504246 , 510324 , 512921 , 513723 , 523221 , 524664 , 529512 , 533782 , 543549 , 544177 , 551259 , 563405 , 568601 , 588257 , 621979 , 623716 , 644203 , 651148 , 670742 , 672890 , 696164 , 717722 , 722803 , 727854 , 736846 , 739297 , 740501 , 741752 , 741756 , 742818 , 742904 , 761655 , 773520 , 804533 , 818067 );
Copy
5
80.25 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
185820
381946
386989
398042
398997
416863
420347
435562
441537
443119
443648
447520
454115
454269
457231
459577
459588
460561
462349
462700
464270
466423
467783
467793
470300
471534
471992
475897
476515
480672
487342
490071
490771
501011
504246
510324
512921
513723
523221
524664
529512
533782
543549
544177
551259
563405
568601
588257
621979
623716
644203
651148
670742
672890
696164
717722
722803
727854
736846
739297
740501
741752
741756
742818
742904
761655
773520
804533
818067
]
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 (185820 , 381946 , 386989 , 398042 , 398997 , 416863 , 420347 , 435562 , 441537 , 443119 , 443648 , 447520 , 454115 , 454269 , 457231 , 459577 , 459588 , 460561 , 462349 , 462700 , 464270 , 466423 , 467783 , 467793 , 470300 , 471534 , 471992 , 475897 , 476515 , 480672 , 487342 , 490071 , 490771 , 501011 , 504246 , 510324 , 512921 , 513723 , 523221 , 524664 , 529512 , 533782 , 543549 , 544177 , 551259 , 563405 , 568601 , 588257 , 621979 , 623716 , 644203 , 651148 , 670742 , 672890 , 696164 , 717722 , 722803 , 727854 , 736846 , 739297 , 740501 , 741752 , 741756 , 742818 , 742904 , 761655 , 773520 , 804533 , 818067 );
Copy