3
14.27 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
600249
614720
468035
444924
567490
666875
600003
571680
599983
512447
541667
507680
423329
478065
649546
603258
467581
530808
527106
604960
489424
550667
639716
632252
634801
522138
486229
537648
583700
550315
590329
431446
567208
445641
474643
583507
628087
475630
541769
434712
425490
680100
489328
533363
541644
555789
632701
449123
667736
541808
583701
651601
476106
542195
541643
543881
604478
558432
605521
530637
541924
540141
605545
541671
542548
609922
469534
542191
408609
643316
478672
613836
]
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 (600249 , 614720 , 468035 , 444924 , 567490 , 666875 , 600003 , 571680 , 599983 , 512447 , 541667 , 507680 , 423329 , 478065 , 649546 , 603258 , 467581 , 530808 , 527106 , 604960 , 489424 , 550667 , 639716 , 632252 , 634801 , 522138 , 486229 , 537648 , 583700 , 550315 , 590329 , 431446 , 567208 , 445641 , 474643 , 583507 , 628087 , 475630 , 541769 , 434712 , 425490 , 680100 , 489328 , 533363 , 541644 , 555789 , 632701 , 449123 , 667736 , 541808 , 583701 , 651601 , 476106 , 542195 , 541643 , 543881 , 604478 , 558432 , 605521 , 530637 , 541924 , 540141 , 605545 , 541671 , 542548 , 609922 , 469534 , 542191 , 408609 , 643316 , 478672 , 613836 );
Copy
4
2.37 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
408609
423329
425490
431446
434712
444924
445641
449123
467581
468035
469534
474643
475630
476106
478065
478672
486229
489328
489424
507680
512447
522138
527106
530637
530808
533363
537648
540141
541643
541644
541667
541671
541769
541808
541924
542191
542195
542548
543881
550315
550667
555789
558432
567208
567490
571680
583507
583700
583701
590329
599983
600003
600249
603258
604478
604960
605521
605545
609922
613836
614720
628087
632252
632701
634801
639716
643316
649546
651601
666875
667736
680100
]
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 (408609 , 423329 , 425490 , 431446 , 434712 , 444924 , 445641 , 449123 , 467581 , 468035 , 469534 , 474643 , 475630 , 476106 , 478065 , 478672 , 486229 , 489328 , 489424 , 507680 , 512447 , 522138 , 527106 , 530637 , 530808 , 533363 , 537648 , 540141 , 541643 , 541644 , 541667 , 541671 , 541769 , 541808 , 541924 , 542191 , 542195 , 542548 , 543881 , 550315 , 550667 , 555789 , 558432 , 567208 , 567490 , 571680 , 583507 , 583700 , 583701 , 590329 , 599983 , 600003 , 600249 , 603258 , 604478 , 604960 , 605521 , 605545 , 609922 , 613836 , 614720 , 628087 , 632252 , 632701 , 634801 , 639716 , 643316 , 649546 , 651601 , 666875 , 667736 , 680100 );
Copy
5
89.66 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
408609
423329
425490
431446
434712
444924
445641
449123
467581
468035
469534
474643
475630
476106
478065
478672
486229
489328
489424
507680
512447
522138
527106
530637
530808
533363
537648
540141
541643
541644
541667
541671
541769
541808
541924
542191
542195
542548
543881
550315
550667
555789
558432
567208
567490
571680
583507
583700
583701
590329
599983
600003
600249
603258
604478
604960
605521
605545
609922
613836
614720
628087
632252
632701
634801
639716
643316
649546
651601
666875
667736
680100
]
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 (408609 , 423329 , 425490 , 431446 , 434712 , 444924 , 445641 , 449123 , 467581 , 468035 , 469534 , 474643 , 475630 , 476106 , 478065 , 478672 , 486229 , 489328 , 489424 , 507680 , 512447 , 522138 , 527106 , 530637 , 530808 , 533363 , 537648 , 540141 , 541643 , 541644 , 541667 , 541671 , 541769 , 541808 , 541924 , 542191 , 542195 , 542548 , 543881 , 550315 , 550667 , 555789 , 558432 , 567208 , 567490 , 571680 , 583507 , 583700 , 583701 , 590329 , 599983 , 600003 , 600249 , 603258 , 604478 , 604960 , 605521 , 605545 , 609922 , 613836 , 614720 , 628087 , 632252 , 632701 , 634801 , 639716 , 643316 , 649546 , 651601 , 666875 , 667736 , 680100 );
Copy