4
14.25 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
495579
513158
475452
563732
569153
552955
574679
582694
569300
575406
603415
588591
594549
596497
603551
628727
636367
604352
618287
724268
439817
423979
459651
439791
456362
486340
526738
404622
454315
446023
496887
502554
514736
521359
526148
533318
528360
525132
647885
603317
606665
809272
728194
455218
440744
485273
509256
424675
574396
569544
716811
604050
626885
459136
439651
518006
554812
563634
468965
583371
517414
561998
562644
625172
564901
593689
601101
588318
]
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 (495579 , 513158 , 475452 , 563732 , 569153 , 552955 , 574679 , 582694 , 569300 , 575406 , 603415 , 588591 , 594549 , 596497 , 603551 , 628727 , 636367 , 604352 , 618287 , 724268 , 439817 , 423979 , 459651 , 439791 , 456362 , 486340 , 526738 , 404622 , 454315 , 446023 , 496887 , 502554 , 514736 , 521359 , 526148 , 533318 , 528360 , 525132 , 647885 , 603317 , 606665 , 809272 , 728194 , 455218 , 440744 , 485273 , 509256 , 424675 , 574396 , 569544 , 716811 , 604050 , 626885 , 459136 , 439651 , 518006 , 554812 , 563634 , 468965 , 583371 , 517414 , 561998 , 562644 , 625172 , 564901 , 593689 , 601101 , 588318 );
Copy
5
2.33 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
404622
423979
424675
439651
439791
439817
440744
446023
454315
455218
456362
459136
459651
468965
475452
485273
486340
495579
496887
502554
509256
513158
514736
517414
518006
521359
525132
526148
526738
528360
533318
552955
554812
561998
562644
563634
563732
564901
569153
569300
569544
574396
574679
575406
582694
583371
588318
588591
593689
594549
596497
601101
603317
603415
603551
604050
604352
606665
618287
625172
626885
628727
636367
647885
716811
724268
728194
809272
]
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 (404622 , 423979 , 424675 , 439651 , 439791 , 439817 , 440744 , 446023 , 454315 , 455218 , 456362 , 459136 , 459651 , 468965 , 475452 , 485273 , 486340 , 495579 , 496887 , 502554 , 509256 , 513158 , 514736 , 517414 , 518006 , 521359 , 525132 , 526148 , 526738 , 528360 , 533318 , 552955 , 554812 , 561998 , 562644 , 563634 , 563732 , 564901 , 569153 , 569300 , 569544 , 574396 , 574679 , 575406 , 582694 , 583371 , 588318 , 588591 , 593689 , 594549 , 596497 , 601101 , 603317 , 603415 , 603551 , 604050 , 604352 , 606665 , 618287 , 625172 , 626885 , 628727 , 636367 , 647885 , 716811 , 724268 , 728194 , 809272 );
Copy
6
112.10 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
404622
423979
424675
439651
439791
439817
440744
446023
454315
455218
456362
459136
459651
468965
475452
485273
486340
495579
496887
502554
509256
513158
514736
517414
518006
521359
525132
526148
526738
528360
533318
552955
554812
561998
562644
563634
563732
564901
569153
569300
569544
574396
574679
575406
582694
583371
588318
588591
593689
594549
596497
601101
603317
603415
603551
604050
604352
606665
618287
625172
626885
628727
636367
647885
716811
724268
728194
809272
]
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 (404622 , 423979 , 424675 , 439651 , 439791 , 439817 , 440744 , 446023 , 454315 , 455218 , 456362 , 459136 , 459651 , 468965 , 475452 , 485273 , 486340 , 495579 , 496887 , 502554 , 509256 , 513158 , 514736 , 517414 , 518006 , 521359 , 525132 , 526148 , 526738 , 528360 , 533318 , 552955 , 554812 , 561998 , 562644 , 563634 , 563732 , 564901 , 569153 , 569300 , 569544 , 574396 , 574679 , 575406 , 582694 , 583371 , 588318 , 588591 , 593689 , 594549 , 596497 , 601101 , 603317 , 603415 , 603551 , 604050 , 604352 , 606665 , 618287 , 625172 , 626885 , 628727 , 636367 , 647885 , 716811 , 724268 , 728194 , 809272 );
Copy