3
12.07 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
537857
507083
584430
707483
771456
517647
491107
692676
796301
769160
794933
732782
769476
748398
760965
459914
806050
750072
767995
500421
464678
714129
450638
584434
526534
485720
535252
512929
823767
780704
584406
792185
650612
541188
586302
624537
484100
523245
520808
427971
511319
568532
551121
607070
728496
784112
522203
455515
549832
432822
460783
794963
497290
603053
584672
693965
479641
473728
484928
504791
614580
643370
607027
470829
544461
527405
623306
439565
492401
516711
509995
523253
518473
516727
528361
]
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 (537857 , 507083 , 584430 , 707483 , 771456 , 517647 , 491107 , 692676 , 796301 , 769160 , 794933 , 732782 , 769476 , 748398 , 760965 , 459914 , 806050 , 750072 , 767995 , 500421 , 464678 , 714129 , 450638 , 584434 , 526534 , 485720 , 535252 , 512929 , 823767 , 780704 , 584406 , 792185 , 650612 , 541188 , 586302 , 624537 , 484100 , 523245 , 520808 , 427971 , 511319 , 568532 , 551121 , 607070 , 728496 , 784112 , 522203 , 455515 , 549832 , 432822 , 460783 , 794963 , 497290 , 603053 , 584672 , 693965 , 479641 , 473728 , 484928 , 504791 , 614580 , 643370 , 607027 , 470829 , 544461 , 527405 , 623306 , 439565 , 492401 , 516711 , 509995 , 523253 , 518473 , 516727 , 528361 );
Copy
4
2.70 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
427971
432822
439565
450638
455515
459914
460783
464678
470829
473728
479641
484100
484928
485720
491107
492401
497290
500421
504791
507083
509995
511319
512929
516711
516727
517647
518473
520808
522203
523245
523253
526534
527405
528361
535252
537857
541188
544461
549832
551121
568532
584406
584430
584434
584672
586302
603053
607027
607070
614580
623306
624537
643370
650612
692676
693965
707483
714129
728496
732782
748398
750072
760965
767995
769160
769476
771456
780704
784112
792185
794933
794963
796301
806050
823767
]
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 (427971 , 432822 , 439565 , 450638 , 455515 , 459914 , 460783 , 464678 , 470829 , 473728 , 479641 , 484100 , 484928 , 485720 , 491107 , 492401 , 497290 , 500421 , 504791 , 507083 , 509995 , 511319 , 512929 , 516711 , 516727 , 517647 , 518473 , 520808 , 522203 , 523245 , 523253 , 526534 , 527405 , 528361 , 535252 , 537857 , 541188 , 544461 , 549832 , 551121 , 568532 , 584406 , 584430 , 584434 , 584672 , 586302 , 603053 , 607027 , 607070 , 614580 , 623306 , 624537 , 643370 , 650612 , 692676 , 693965 , 707483 , 714129 , 728496 , 732782 , 748398 , 750072 , 760965 , 767995 , 769160 , 769476 , 771456 , 780704 , 784112 , 792185 , 794933 , 794963 , 796301 , 806050 , 823767 );
Copy
5
131.29 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
427971
432822
439565
450638
455515
459914
460783
464678
470829
473728
479641
484100
484928
485720
491107
492401
497290
500421
504791
507083
509995
511319
512929
516711
516727
517647
518473
520808
522203
523245
523253
526534
527405
528361
535252
537857
541188
544461
549832
551121
568532
584406
584430
584434
584672
586302
603053
607027
607070
614580
623306
624537
643370
650612
692676
693965
707483
714129
728496
732782
748398
750072
760965
767995
769160
769476
771456
780704
784112
792185
794933
794963
796301
806050
823767
]
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 (427971 , 432822 , 439565 , 450638 , 455515 , 459914 , 460783 , 464678 , 470829 , 473728 , 479641 , 484100 , 484928 , 485720 , 491107 , 492401 , 497290 , 500421 , 504791 , 507083 , 509995 , 511319 , 512929 , 516711 , 516727 , 517647 , 518473 , 520808 , 522203 , 523245 , 523253 , 526534 , 527405 , 528361 , 535252 , 537857 , 541188 , 544461 , 549832 , 551121 , 568532 , 584406 , 584430 , 584434 , 584672 , 586302 , 603053 , 607027 , 607070 , 614580 , 623306 , 624537 , 643370 , 650612 , 692676 , 693965 , 707483 , 714129 , 728496 , 732782 , 748398 , 750072 , 760965 , 767995 , 769160 , 769476 , 771456 , 780704 , 784112 , 792185 , 794933 , 794963 , 796301 , 806050 , 823767 );
Copy