4
14.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
567290
690149
589597
590720
588724
726508
601387
697000
444586
453698
411946
519239
527341
492535
519325
523032
560019
590749
625172
519334
573814
588014
428972
514046
528146
546124
549638
663992
610661
615826
439620
512566
522125
471612
469552
599199
595178
504759
608553
527292
415963
636535
429805
495198
679004
589634
628811
525441
565346
513539
516727
521136
533426
558223
520346
696203
475508
493356
526039
585007
467553
572344
523139
558244
662997
593975
518586
606799
511009
648560
597170
597240
614745
573920
630536
632632
]
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 (567290 , 690149 , 589597 , 590720 , 588724 , 726508 , 601387 , 697000 , 444586 , 453698 , 411946 , 519239 , 527341 , 492535 , 519325 , 523032 , 560019 , 590749 , 625172 , 519334 , 573814 , 588014 , 428972 , 514046 , 528146 , 546124 , 549638 , 663992 , 610661 , 615826 , 439620 , 512566 , 522125 , 471612 , 469552 , 599199 , 595178 , 504759 , 608553 , 527292 , 415963 , 636535 , 429805 , 495198 , 679004 , 589634 , 628811 , 525441 , 565346 , 513539 , 516727 , 521136 , 533426 , 558223 , 520346 , 696203 , 475508 , 493356 , 526039 , 585007 , 467553 , 572344 , 523139 , 558244 , 662997 , 593975 , 518586 , 606799 , 511009 , 648560 , 597170 , 597240 , 614745 , 573920 , 630536 , 632632 );
Copy
5
3.02 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
411946
415963
428972
429805
439620
444586
453698
467553
469552
471612
475508
492535
493356
495198
504759
511009
512566
513539
514046
516727
518586
519239
519325
519334
520346
521136
522125
523032
523139
525441
526039
527292
527341
528146
533426
546124
549638
558223
558244
560019
565346
567290
572344
573814
573920
585007
588014
588724
589597
589634
590720
593975
595178
597170
597240
599199
601387
606799
608553
610661
614745
615826
625172
628811
630536
632632
636535
648560
662997
663992
679004
690149
696203
697000
726508
]
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 (411946 , 415963 , 428972 , 429805 , 439620 , 444586 , 453698 , 467553 , 469552 , 471612 , 475508 , 492535 , 493356 , 495198 , 504759 , 511009 , 512566 , 513539 , 514046 , 516727 , 518586 , 519239 , 519325 , 519334 , 520346 , 521136 , 522125 , 523032 , 523139 , 525441 , 526039 , 527292 , 527341 , 528146 , 533426 , 546124 , 549638 , 558223 , 558244 , 560019 , 565346 , 567290 , 572344 , 573814 , 573920 , 585007 , 588014 , 588724 , 589597 , 589634 , 590720 , 593975 , 595178 , 597170 , 597240 , 599199 , 601387 , 606799 , 608553 , 610661 , 614745 , 615826 , 625172 , 628811 , 630536 , 632632 , 636535 , 648560 , 662997 , 663992 , 679004 , 690149 , 696203 , 697000 , 726508 );
Copy
6
96.70 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
411946
415963
428972
429805
439620
444586
453698
467553
469552
471612
475508
492535
493356
495198
504759
511009
512566
513539
514046
516727
518586
519239
519325
519334
520346
521136
522125
523032
523139
525441
526039
527292
527341
528146
533426
546124
549638
558223
558244
560019
565346
567290
572344
573814
573920
585007
588014
588724
589597
589634
590720
593975
595178
597170
597240
599199
601387
606799
608553
610661
614745
615826
625172
628811
630536
632632
636535
648560
662997
663992
679004
690149
696203
697000
726508
]
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 (411946 , 415963 , 428972 , 429805 , 439620 , 444586 , 453698 , 467553 , 469552 , 471612 , 475508 , 492535 , 493356 , 495198 , 504759 , 511009 , 512566 , 513539 , 514046 , 516727 , 518586 , 519239 , 519325 , 519334 , 520346 , 521136 , 522125 , 523032 , 523139 , 525441 , 526039 , 527292 , 527341 , 528146 , 533426 , 546124 , 549638 , 558223 , 558244 , 560019 , 565346 , 567290 , 572344 , 573814 , 573920 , 585007 , 588014 , 588724 , 589597 , 589634 , 590720 , 593975 , 595178 , 597170 , 597240 , 599199 , 601387 , 606799 , 608553 , 610661 , 614745 , 615826 , 625172 , 628811 , 630536 , 632632 , 636535 , 648560 , 662997 , 663992 , 679004 , 690149 , 696203 , 697000 , 726508 );
Copy