3
15.10 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
465608
419989
451552
485249
489083
500669
432662
425332
821605
536681
526188
528719
529277
464162
486182
558126
578139
560152
565250
574410
659674
720260
544796
565241
593238
616617
640758
606294
585431
617214
622714
423650
487150
491273
513669
532241
533802
508883
532380
537670
537928
538283
583960
668549
666871
545586
631972
598042
600995
633749
458907
450822
537686
540217
551222
556030
562796
651666
656768
637008
556046
632020
637036
590329
552623
659272
642006
642037
642016
419370
557236
675008
597216
533534
584720
]
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 (465608 , 419989 , 451552 , 485249 , 489083 , 500669 , 432662 , 425332 , 821605 , 536681 , 526188 , 528719 , 529277 , 464162 , 486182 , 558126 , 578139 , 560152 , 565250 , 574410 , 659674 , 720260 , 544796 , 565241 , 593238 , 616617 , 640758 , 606294 , 585431 , 617214 , 622714 , 423650 , 487150 , 491273 , 513669 , 532241 , 533802 , 508883 , 532380 , 537670 , 537928 , 538283 , 583960 , 668549 , 666871 , 545586 , 631972 , 598042 , 600995 , 633749 , 458907 , 450822 , 537686 , 540217 , 551222 , 556030 , 562796 , 651666 , 656768 , 637008 , 556046 , 632020 , 637036 , 590329 , 552623 , 659272 , 642006 , 642037 , 642016 , 419370 , 557236 , 675008 , 597216 , 533534 , 584720 );
Copy
4
3.12 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
419370
419989
423650
425332
432662
450822
451552
458907
464162
465608
485249
486182
487150
489083
491273
500669
508883
513669
526188
528719
529277
532241
532380
533534
533802
536681
537670
537686
537928
538283
540217
544796
545586
551222
552623
556030
556046
557236
558126
560152
562796
565241
565250
574410
578139
583960
584720
585431
590329
593238
597216
598042
600995
606294
616617
617214
622714
631972
632020
633749
637008
637036
640758
642006
642016
642037
651666
656768
659272
659674
666871
668549
675008
720260
821605
]
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 (419370 , 419989 , 423650 , 425332 , 432662 , 450822 , 451552 , 458907 , 464162 , 465608 , 485249 , 486182 , 487150 , 489083 , 491273 , 500669 , 508883 , 513669 , 526188 , 528719 , 529277 , 532241 , 532380 , 533534 , 533802 , 536681 , 537670 , 537686 , 537928 , 538283 , 540217 , 544796 , 545586 , 551222 , 552623 , 556030 , 556046 , 557236 , 558126 , 560152 , 562796 , 565241 , 565250 , 574410 , 578139 , 583960 , 584720 , 585431 , 590329 , 593238 , 597216 , 598042 , 600995 , 606294 , 616617 , 617214 , 622714 , 631972 , 632020 , 633749 , 637008 , 637036 , 640758 , 642006 , 642016 , 642037 , 651666 , 656768 , 659272 , 659674 , 666871 , 668549 , 675008 , 720260 , 821605 );
Copy
5
94.54 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
419370
419989
423650
425332
432662
450822
451552
458907
464162
465608
485249
486182
487150
489083
491273
500669
508883
513669
526188
528719
529277
532241
532380
533534
533802
536681
537670
537686
537928
538283
540217
544796
545586
551222
552623
556030
556046
557236
558126
560152
562796
565241
565250
574410
578139
583960
584720
585431
590329
593238
597216
598042
600995
606294
616617
617214
622714
631972
632020
633749
637008
637036
640758
642006
642016
642037
651666
656768
659272
659674
666871
668549
675008
720260
821605
]
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 (419370 , 419989 , 423650 , 425332 , 432662 , 450822 , 451552 , 458907 , 464162 , 465608 , 485249 , 486182 , 487150 , 489083 , 491273 , 500669 , 508883 , 513669 , 526188 , 528719 , 529277 , 532241 , 532380 , 533534 , 533802 , 536681 , 537670 , 537686 , 537928 , 538283 , 540217 , 544796 , 545586 , 551222 , 552623 , 556030 , 556046 , 557236 , 558126 , 560152 , 562796 , 565241 , 565250 , 574410 , 578139 , 583960 , 584720 , 585431 , 590329 , 593238 , 597216 , 598042 , 600995 , 606294 , 616617 , 617214 , 622714 , 631972 , 632020 , 633749 , 637008 , 637036 , 640758 , 642006 , 642016 , 642037 , 651666 , 656768 , 659272 , 659674 , 666871 , 668549 , 675008 , 720260 , 821605 );
Copy