3
13.15 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
368244
146393
681401
673638
644696
776445
682588
776839
654636
670566
674413
722653
809294
516499
640083
644567
582782
612831
666852
685305
697282
649546
607527
91473
672789
757176
666527
586440
698528
630860
786716
812558
747999
460133
623199
113322
819658
718600
767090
812537
398558
545732
787402
538591
719716
585397
453300
626434
638870
417047
395257
461655
691201
645237
649202
578705
634515
634815
563060
636108
563063
644915
511492
470849
589060
521723
]
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 (368244 , 146393 , 681401 , 673638 , 644696 , 776445 , 682588 , 776839 , 654636 , 670566 , 674413 , 722653 , 809294 , 516499 , 640083 , 644567 , 582782 , 612831 , 666852 , 685305 , 697282 , 649546 , 607527 , 91473 , 672789 , 757176 , 666527 , 586440 , 698528 , 630860 , 786716 , 812558 , 747999 , 460133 , 623199 , 113322 , 819658 , 718600 , 767090 , 812537 , 398558 , 545732 , 787402 , 538591 , 719716 , 585397 , 453300 , 626434 , 638870 , 417047 , 395257 , 461655 , 691201 , 645237 , 649202 , 578705 , 634515 , 634815 , 563060 , 636108 , 563063 , 644915 , 511492 , 470849 , 589060 , 521723 );
Copy
4
2.73 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
91473
113322
146393
368244
395257
398558
417047
453300
460133
461655
470849
511492
516499
521723
538591
545732
563060
563063
578705
582782
585397
586440
589060
607527
612831
623199
626434
630860
634515
634815
636108
638870
640083
644567
644696
644915
645237
649202
649546
654636
666527
666852
670566
672789
673638
674413
681401
682588
685305
691201
697282
698528
718600
719716
722653
747999
757176
767090
776445
776839
786716
787402
809294
812537
812558
819658
]
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 (91473 , 113322 , 146393 , 368244 , 395257 , 398558 , 417047 , 453300 , 460133 , 461655 , 470849 , 511492 , 516499 , 521723 , 538591 , 545732 , 563060 , 563063 , 578705 , 582782 , 585397 , 586440 , 589060 , 607527 , 612831 , 623199 , 626434 , 630860 , 634515 , 634815 , 636108 , 638870 , 640083 , 644567 , 644696 , 644915 , 645237 , 649202 , 649546 , 654636 , 666527 , 666852 , 670566 , 672789 , 673638 , 674413 , 681401 , 682588 , 685305 , 691201 , 697282 , 698528 , 718600 , 719716 , 722653 , 747999 , 757176 , 767090 , 776445 , 776839 , 786716 , 787402 , 809294 , 812537 , 812558 , 819658 );
Copy
5
83.65 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
91473
113322
146393
368244
395257
398558
417047
453300
460133
461655
470849
511492
516499
521723
538591
545732
563060
563063
578705
582782
585397
586440
589060
607527
612831
623199
626434
630860
634515
634815
636108
638870
640083
644567
644696
644915
645237
649202
649546
654636
666527
666852
670566
672789
673638
674413
681401
682588
685305
691201
697282
698528
718600
719716
722653
747999
757176
767090
776445
776839
786716
787402
809294
812537
812558
819658
]
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 (91473 , 113322 , 146393 , 368244 , 395257 , 398558 , 417047 , 453300 , 460133 , 461655 , 470849 , 511492 , 516499 , 521723 , 538591 , 545732 , 563060 , 563063 , 578705 , 582782 , 585397 , 586440 , 589060 , 607527 , 612831 , 623199 , 626434 , 630860 , 634515 , 634815 , 636108 , 638870 , 640083 , 644567 , 644696 , 644915 , 645237 , 649202 , 649546 , 654636 , 666527 , 666852 , 670566 , 672789 , 673638 , 674413 , 681401 , 682588 , 685305 , 691201 , 697282 , 698528 , 718600 , 719716 , 722653 , 747999 , 757176 , 767090 , 776445 , 776839 , 786716 , 787402 , 809294 , 812537 , 812558 , 819658 );
Copy