3
12.26 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
583541
592364
527910
521763
543022
559315
566563
581124
717274
582297
588603
591750
796822
473129
508138
542578
570148
589685
615428
485140
814399
481323
520474
580866
559345
559356
596925
593247
630092
760068
539857
596966
493825
716980
590968
600464
618575
569947
569956
660457
600804
582371
615145
533290
529184
420516
526601
570426
592170
592363
588620
788132
580201
619571
458197
433040
449360
528146
472299
670564
566566
630781
601101
]
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 (583541 , 592364 , 527910 , 521763 , 543022 , 559315 , 566563 , 581124 , 717274 , 582297 , 588603 , 591750 , 796822 , 473129 , 508138 , 542578 , 570148 , 589685 , 615428 , 485140 , 814399 , 481323 , 520474 , 580866 , 559345 , 559356 , 596925 , 593247 , 630092 , 760068 , 539857 , 596966 , 493825 , 716980 , 590968 , 600464 , 618575 , 569947 , 569956 , 660457 , 600804 , 582371 , 615145 , 533290 , 529184 , 420516 , 526601 , 570426 , 592170 , 592363 , 588620 , 788132 , 580201 , 619571 , 458197 , 433040 , 449360 , 528146 , 472299 , 670564 , 566566 , 630781 , 601101 );
Copy
4
3.63 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
420516
433040
449360
458197
472299
473129
481323
485140
493825
508138
520474
521763
526601
527910
528146
529184
533290
539857
542578
543022
559315
559345
559356
566563
566566
569947
569956
570148
570426
580201
580866
581124
582297
582371
583541
588603
588620
589685
590968
591750
592170
592363
592364
593247
596925
596966
600464
600804
601101
615145
615428
618575
619571
630092
630781
660457
670564
716980
717274
760068
788132
796822
814399
]
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 (420516 , 433040 , 449360 , 458197 , 472299 , 473129 , 481323 , 485140 , 493825 , 508138 , 520474 , 521763 , 526601 , 527910 , 528146 , 529184 , 533290 , 539857 , 542578 , 543022 , 559315 , 559345 , 559356 , 566563 , 566566 , 569947 , 569956 , 570148 , 570426 , 580201 , 580866 , 581124 , 582297 , 582371 , 583541 , 588603 , 588620 , 589685 , 590968 , 591750 , 592170 , 592363 , 592364 , 593247 , 596925 , 596966 , 600464 , 600804 , 601101 , 615145 , 615428 , 618575 , 619571 , 630092 , 630781 , 660457 , 670564 , 716980 , 717274 , 760068 , 788132 , 796822 , 814399 );
Copy
5
106.80 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
420516
433040
449360
458197
472299
473129
481323
485140
493825
508138
520474
521763
526601
527910
528146
529184
533290
539857
542578
543022
559315
559345
559356
566563
566566
569947
569956
570148
570426
580201
580866
581124
582297
582371
583541
588603
588620
589685
590968
591750
592170
592363
592364
593247
596925
596966
600464
600804
601101
615145
615428
618575
619571
630092
630781
660457
670564
716980
717274
760068
788132
796822
814399
]
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 (420516 , 433040 , 449360 , 458197 , 472299 , 473129 , 481323 , 485140 , 493825 , 508138 , 520474 , 521763 , 526601 , 527910 , 528146 , 529184 , 533290 , 539857 , 542578 , 543022 , 559315 , 559345 , 559356 , 566563 , 566566 , 569947 , 569956 , 570148 , 570426 , 580201 , 580866 , 581124 , 582297 , 582371 , 583541 , 588603 , 588620 , 589685 , 590968 , 591750 , 592170 , 592363 , 592364 , 593247 , 596925 , 596966 , 600464 , 600804 , 601101 , 615145 , 615428 , 618575 , 619571 , 630092 , 630781 , 660457 , 670564 , 716980 , 717274 , 760068 , 788132 , 796822 , 814399 );
Copy