3
10.61 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
213932
720058
538935
665751
606548
795739
548919
562857
717856
407298
68412
681087
95986
505804
515559
566264
647968
650114
654596
681098
649905
671713
619450
634815
701761
557939
562245
653726
664845
747468
478572
645241
607071
734038
518133
532658
532665
661268
612431
681121
646450
632046
634778
453251
597216
451821
551222
559111
582915
645012
677303
651666
421353
457793
644913
676634
518490
532680
563866
677296
645861
586933
639744
639732
513951
534994
528361
674994
632563
]
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 (213932 , 720058 , 538935 , 665751 , 606548 , 795739 , 548919 , 562857 , 717856 , 407298 , 68412 , 681087 , 95986 , 505804 , 515559 , 566264 , 647968 , 650114 , 654596 , 681098 , 649905 , 671713 , 619450 , 634815 , 701761 , 557939 , 562245 , 653726 , 664845 , 747468 , 478572 , 645241 , 607071 , 734038 , 518133 , 532658 , 532665 , 661268 , 612431 , 681121 , 646450 , 632046 , 634778 , 453251 , 597216 , 451821 , 551222 , 559111 , 582915 , 645012 , 677303 , 651666 , 421353 , 457793 , 644913 , 676634 , 518490 , 532680 , 563866 , 677296 , 645861 , 586933 , 639744 , 639732 , 513951 , 534994 , 528361 , 674994 , 632563 );
Copy
4
2.46 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
68412
95986
213932
407298
421353
451821
453251
457793
478572
505804
513951
515559
518133
518490
528361
532658
532665
532680
534994
538935
548919
551222
557939
559111
562245
562857
563866
566264
582915
586933
597216
606548
607071
612431
619450
632046
632563
634778
634815
639732
639744
644913
645012
645241
645861
646450
647968
649905
650114
651666
653726
654596
661268
664845
665751
671713
674994
676634
677296
677303
681087
681098
681121
701761
717856
720058
734038
747468
795739
]
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 (68412 , 95986 , 213932 , 407298 , 421353 , 451821 , 453251 , 457793 , 478572 , 505804 , 513951 , 515559 , 518133 , 518490 , 528361 , 532658 , 532665 , 532680 , 534994 , 538935 , 548919 , 551222 , 557939 , 559111 , 562245 , 562857 , 563866 , 566264 , 582915 , 586933 , 597216 , 606548 , 607071 , 612431 , 619450 , 632046 , 632563 , 634778 , 634815 , 639732 , 639744 , 644913 , 645012 , 645241 , 645861 , 646450 , 647968 , 649905 , 650114 , 651666 , 653726 , 654596 , 661268 , 664845 , 665751 , 671713 , 674994 , 676634 , 677296 , 677303 , 681087 , 681098 , 681121 , 701761 , 717856 , 720058 , 734038 , 747468 , 795739 );
Copy
5
96.01 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
68412
95986
213932
407298
421353
451821
453251
457793
478572
505804
513951
515559
518133
518490
528361
532658
532665
532680
534994
538935
548919
551222
557939
559111
562245
562857
563866
566264
582915
586933
597216
606548
607071
612431
619450
632046
632563
634778
634815
639732
639744
644913
645012
645241
645861
646450
647968
649905
650114
651666
653726
654596
661268
664845
665751
671713
674994
676634
677296
677303
681087
681098
681121
701761
717856
720058
734038
747468
795739
]
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 (68412 , 95986 , 213932 , 407298 , 421353 , 451821 , 453251 , 457793 , 478572 , 505804 , 513951 , 515559 , 518133 , 518490 , 528361 , 532658 , 532665 , 532680 , 534994 , 538935 , 548919 , 551222 , 557939 , 559111 , 562245 , 562857 , 563866 , 566264 , 582915 , 586933 , 597216 , 606548 , 607071 , 612431 , 619450 , 632046 , 632563 , 634778 , 634815 , 639732 , 639744 , 644913 , 645012 , 645241 , 645861 , 646450 , 647968 , 649905 , 650114 , 651666 , 653726 , 654596 , 661268 , 664845 , 665751 , 671713 , 674994 , 676634 , 677296 , 677303 , 681087 , 681098 , 681121 , 701761 , 717856 , 720058 , 734038 , 747468 , 795739 );
Copy