3
14.83 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
494695
560411
550616
561756
788936
775989
628363
478652
560202
517369
548548
447888
523167
423641
451753
436437
446560
673661
591061
473472
404346
620616
718710
470782
400948
515572
576036
642750
728496
788284
397982
440762
591077
414204
533917
481407
544686
508430
440906
455225
598786
785423
633732
506556
447944
624502
601674
561704
600084
537685
527412
434319
473782
814072
514715
563887
528146
498054
522525
557236
601922
550618
649556
518206
501641
603523
514717
596168
]
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 (494695 , 560411 , 550616 , 561756 , 788936 , 775989 , 628363 , 478652 , 560202 , 517369 , 548548 , 447888 , 523167 , 423641 , 451753 , 436437 , 446560 , 673661 , 591061 , 473472 , 404346 , 620616 , 718710 , 470782 , 400948 , 515572 , 576036 , 642750 , 728496 , 788284 , 397982 , 440762 , 591077 , 414204 , 533917 , 481407 , 544686 , 508430 , 440906 , 455225 , 598786 , 785423 , 633732 , 506556 , 447944 , 624502 , 601674 , 561704 , 600084 , 537685 , 527412 , 434319 , 473782 , 814072 , 514715 , 563887 , 528146 , 498054 , 522525 , 557236 , 601922 , 550618 , 649556 , 518206 , 501641 , 603523 , 514717 , 596168 );
Copy
4
207.17 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
397982
400948
404346
414204
423641
434319
436437
440762
440906
446560
447888
447944
451753
455225
470782
473472
473782
478652
481407
494695
498054
501641
506556
508430
514715
514717
515572
517369
518206
522525
523167
527412
528146
533917
537685
544686
548548
550616
550618
557236
560202
560411
561704
561756
563887
576036
591061
591077
596168
598786
600084
601674
601922
603523
620616
624502
628363
633732
642750
649556
673661
718710
728496
775989
785423
788284
788936
814072
]
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 (397982 , 400948 , 404346 , 414204 , 423641 , 434319 , 436437 , 440762 , 440906 , 446560 , 447888 , 447944 , 451753 , 455225 , 470782 , 473472 , 473782 , 478652 , 481407 , 494695 , 498054 , 501641 , 506556 , 508430 , 514715 , 514717 , 515572 , 517369 , 518206 , 522525 , 523167 , 527412 , 528146 , 533917 , 537685 , 544686 , 548548 , 550616 , 550618 , 557236 , 560202 , 560411 , 561704 , 561756 , 563887 , 576036 , 591061 , 591077 , 596168 , 598786 , 600084 , 601674 , 601922 , 603523 , 620616 , 624502 , 628363 , 633732 , 642750 , 649556 , 673661 , 718710 , 728496 , 775989 , 785423 , 788284 , 788936 , 814072 );
Copy
5
84.20 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
397982
400948
404346
414204
423641
434319
436437
440762
440906
446560
447888
447944
451753
455225
470782
473472
473782
478652
481407
494695
498054
501641
506556
508430
514715
514717
515572
517369
518206
522525
523167
527412
528146
533917
537685
544686
548548
550616
550618
557236
560202
560411
561704
561756
563887
576036
591061
591077
596168
598786
600084
601674
601922
603523
620616
624502
628363
633732
642750
649556
673661
718710
728496
775989
785423
788284
788936
814072
]
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 (397982 , 400948 , 404346 , 414204 , 423641 , 434319 , 436437 , 440762 , 440906 , 446560 , 447888 , 447944 , 451753 , 455225 , 470782 , 473472 , 473782 , 478652 , 481407 , 494695 , 498054 , 501641 , 506556 , 508430 , 514715 , 514717 , 515572 , 517369 , 518206 , 522525 , 523167 , 527412 , 528146 , 533917 , 537685 , 544686 , 548548 , 550616 , 550618 , 557236 , 560202 , 560411 , 561704 , 561756 , 563887 , 576036 , 591061 , 591077 , 596168 , 598786 , 600084 , 601674 , 601922 , 603523 , 620616 , 624502 , 628363 , 633732 , 642750 , 649556 , 673661 , 718710 , 728496 , 775989 , 785423 , 788284 , 788936 , 814072 );
Copy