3
224.30 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
602790
393711
682714
507605
750957
521964
712238
381773
489310
661326
466970
478253
118258
465638
439376
484777
419987
446247
547694
573280
584323
503651
535408
613951
547570
473132
415858
497575
550475
488236
570936
572268
733446
450326
444786
567908
564263
548067
589319
466317
470015
430018
553545
515170
443257
563362
673349
618146
624552
624834
477260
550599
598040
568596
659272
599057
602981
618477
608048
621091
468651
523654
498775
509100
567156
476604
643316
481994
560230
]
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 (602790 , 393711 , 682714 , 507605 , 750957 , 521964 , 712238 , 381773 , 489310 , 661326 , 466970 , 478253 , 118258 , 465638 , 439376 , 484777 , 419987 , 446247 , 547694 , 573280 , 584323 , 503651 , 535408 , 613951 , 547570 , 473132 , 415858 , 497575 , 550475 , 488236 , 570936 , 572268 , 733446 , 450326 , 444786 , 567908 , 564263 , 548067 , 589319 , 466317 , 470015 , 430018 , 553545 , 515170 , 443257 , 563362 , 673349 , 618146 , 624552 , 624834 , 477260 , 550599 , 598040 , 568596 , 659272 , 599057 , 602981 , 618477 , 608048 , 621091 , 468651 , 523654 , 498775 , 509100 , 567156 , 476604 , 643316 , 481994 , 560230 );
Copy
4
8.10 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
118258
381773
393711
415858
419987
430018
439376
443257
444786
446247
450326
465638
466317
466970
468651
470015
473132
476604
477260
478253
481994
484777
488236
489310
497575
498775
503651
507605
509100
515170
521964
523654
535408
547570
547694
548067
550475
550599
553545
560230
563362
564263
567156
567908
568596
570936
572268
573280
584323
589319
598040
599057
602790
602981
608048
613951
618146
618477
621091
624552
624834
643316
659272
661326
673349
682714
712238
733446
750957
]
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 (118258 , 381773 , 393711 , 415858 , 419987 , 430018 , 439376 , 443257 , 444786 , 446247 , 450326 , 465638 , 466317 , 466970 , 468651 , 470015 , 473132 , 476604 , 477260 , 478253 , 481994 , 484777 , 488236 , 489310 , 497575 , 498775 , 503651 , 507605 , 509100 , 515170 , 521964 , 523654 , 535408 , 547570 , 547694 , 548067 , 550475 , 550599 , 553545 , 560230 , 563362 , 564263 , 567156 , 567908 , 568596 , 570936 , 572268 , 573280 , 584323 , 589319 , 598040 , 599057 , 602790 , 602981 , 608048 , 613951 , 618146 , 618477 , 621091 , 624552 , 624834 , 643316 , 659272 , 661326 , 673349 , 682714 , 712238 , 733446 , 750957 );
Copy
5
115.91 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
118258
381773
393711
415858
419987
430018
439376
443257
444786
446247
450326
465638
466317
466970
468651
470015
473132
476604
477260
478253
481994
484777
488236
489310
497575
498775
503651
507605
509100
515170
521964
523654
535408
547570
547694
548067
550475
550599
553545
560230
563362
564263
567156
567908
568596
570936
572268
573280
584323
589319
598040
599057
602790
602981
608048
613951
618146
618477
621091
624552
624834
643316
659272
661326
673349
682714
712238
733446
750957
]
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 (118258 , 381773 , 393711 , 415858 , 419987 , 430018 , 439376 , 443257 , 444786 , 446247 , 450326 , 465638 , 466317 , 466970 , 468651 , 470015 , 473132 , 476604 , 477260 , 478253 , 481994 , 484777 , 488236 , 489310 , 497575 , 498775 , 503651 , 507605 , 509100 , 515170 , 521964 , 523654 , 535408 , 547570 , 547694 , 548067 , 550475 , 550599 , 553545 , 560230 , 563362 , 564263 , 567156 , 567908 , 568596 , 570936 , 572268 , 573280 , 584323 , 589319 , 598040 , 599057 , 602790 , 602981 , 608048 , 613951 , 618146 , 618477 , 621091 , 624552 , 624834 , 643316 , 659272 , 661326 , 673349 , 682714 , 712238 , 733446 , 750957 );
Copy