3
15.84 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
584631
591784
507973
484498
653537
636283
480800
660520
576095
464385
569686
680197
569357
605416
598838
620290
610869
554425
642686
608416
396168
489893
579273
619318
525525
606687
621449
605586
599483
586180
570866
520008
657402
618943
527414
597045
536397
576310
621265
615444
615801
415419
506338
574527
479629
492736
603493
609839
624217
515184
542550
603816
446376
523336
555868
524542
569682
559127
557235
503840
562825
472486
418686
523822
528075
]
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 (584631 , 591784 , 507973 , 484498 , 653537 , 636283 , 480800 , 660520 , 576095 , 464385 , 569686 , 680197 , 569357 , 605416 , 598838 , 620290 , 610869 , 554425 , 642686 , 608416 , 396168 , 489893 , 579273 , 619318 , 525525 , 606687 , 621449 , 605586 , 599483 , 586180 , 570866 , 520008 , 657402 , 618943 , 527414 , 597045 , 536397 , 576310 , 621265 , 615444 , 615801 , 415419 , 506338 , 574527 , 479629 , 492736 , 603493 , 609839 , 624217 , 515184 , 542550 , 603816 , 446376 , 523336 , 555868 , 524542 , 569682 , 559127 , 557235 , 503840 , 562825 , 472486 , 418686 , 523822 , 528075 );
Copy
4
2.69 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
396168
415419
418686
446376
464385
472486
479629
480800
484498
489893
492736
503840
506338
507973
515184
520008
523336
523822
524542
525525
527414
528075
536397
542550
554425
555868
557235
559127
562825
569357
569682
569686
570866
574527
576095
576310
579273
584631
586180
591784
597045
598838
599483
603493
603816
605416
605586
606687
608416
609839
610869
615444
615801
618943
619318
620290
621265
621449
624217
636283
642686
653537
657402
660520
680197
]
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 (396168 , 415419 , 418686 , 446376 , 464385 , 472486 , 479629 , 480800 , 484498 , 489893 , 492736 , 503840 , 506338 , 507973 , 515184 , 520008 , 523336 , 523822 , 524542 , 525525 , 527414 , 528075 , 536397 , 542550 , 554425 , 555868 , 557235 , 559127 , 562825 , 569357 , 569682 , 569686 , 570866 , 574527 , 576095 , 576310 , 579273 , 584631 , 586180 , 591784 , 597045 , 598838 , 599483 , 603493 , 603816 , 605416 , 605586 , 606687 , 608416 , 609839 , 610869 , 615444 , 615801 , 618943 , 619318 , 620290 , 621265 , 621449 , 624217 , 636283 , 642686 , 653537 , 657402 , 660520 , 680197 );
Copy
5
150.85 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
396168
415419
418686
446376
464385
472486
479629
480800
484498
489893
492736
503840
506338
507973
515184
520008
523336
523822
524542
525525
527414
528075
536397
542550
554425
555868
557235
559127
562825
569357
569682
569686
570866
574527
576095
576310
579273
584631
586180
591784
597045
598838
599483
603493
603816
605416
605586
606687
608416
609839
610869
615444
615801
618943
619318
620290
621265
621449
624217
636283
642686
653537
657402
660520
680197
]
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 (396168 , 415419 , 418686 , 446376 , 464385 , 472486 , 479629 , 480800 , 484498 , 489893 , 492736 , 503840 , 506338 , 507973 , 515184 , 520008 , 523336 , 523822 , 524542 , 525525 , 527414 , 528075 , 536397 , 542550 , 554425 , 555868 , 557235 , 559127 , 562825 , 569357 , 569682 , 569686 , 570866 , 574527 , 576095 , 576310 , 579273 , 584631 , 586180 , 591784 , 597045 , 598838 , 599483 , 603493 , 603816 , 605416 , 605586 , 606687 , 608416 , 609839 , 610869 , 615444 , 615801 , 618943 , 619318 , 620290 , 621265 , 621449 , 624217 , 636283 , 642686 , 653537 , 657402 , 660520 , 680197 );
Copy