4
18.90 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
563443
792619
792617
400191
415948
467233
486577
400169
457991
476345
599609
628423
384489
434608
431242
518870
669188
507681
482555
442726
449889
450847
599726
431422
466152
402256
418959
448711
534284
480786
581734
407662
400517
523659
527027
529300
421155
449635
599659
513480
448687
531080
546063
621767
628167
589709
621655
418934
484126
529383
514647
598863
517088
540800
525881
626944
518441
491978
491963
514294
609953
619527
434601
584720
521159
]
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 (563443 , 792619 , 792617 , 400191 , 415948 , 467233 , 486577 , 400169 , 457991 , 476345 , 599609 , 628423 , 384489 , 434608 , 431242 , 518870 , 669188 , 507681 , 482555 , 442726 , 449889 , 450847 , 599726 , 431422 , 466152 , 402256 , 418959 , 448711 , 534284 , 480786 , 581734 , 407662 , 400517 , 523659 , 527027 , 529300 , 421155 , 449635 , 599659 , 513480 , 448687 , 531080 , 546063 , 621767 , 628167 , 589709 , 621655 , 418934 , 484126 , 529383 , 514647 , 598863 , 517088 , 540800 , 525881 , 626944 , 518441 , 491978 , 491963 , 514294 , 609953 , 619527 , 434601 , 584720 , 521159 );
Copy
5
2.22 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
384489
400169
400191
400517
402256
407662
415948
418934
418959
421155
431242
431422
434601
434608
442726
448687
448711
449635
449889
450847
457991
466152
467233
476345
480786
482555
484126
486577
491963
491978
507681
513480
514294
514647
517088
518441
518870
521159
523659
525881
527027
529300
529383
531080
534284
540800
546063
563443
581734
584720
589709
598863
599609
599659
599726
609953
619527
621655
621767
626944
628167
628423
669188
792617
792619
]
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 (384489 , 400169 , 400191 , 400517 , 402256 , 407662 , 415948 , 418934 , 418959 , 421155 , 431242 , 431422 , 434601 , 434608 , 442726 , 448687 , 448711 , 449635 , 449889 , 450847 , 457991 , 466152 , 467233 , 476345 , 480786 , 482555 , 484126 , 486577 , 491963 , 491978 , 507681 , 513480 , 514294 , 514647 , 517088 , 518441 , 518870 , 521159 , 523659 , 525881 , 527027 , 529300 , 529383 , 531080 , 534284 , 540800 , 546063 , 563443 , 581734 , 584720 , 589709 , 598863 , 599609 , 599659 , 599726 , 609953 , 619527 , 621655 , 621767 , 626944 , 628167 , 628423 , 669188 , 792617 , 792619 );
Copy
6
109.70 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
384489
400169
400191
400517
402256
407662
415948
418934
418959
421155
431242
431422
434601
434608
442726
448687
448711
449635
449889
450847
457991
466152
467233
476345
480786
482555
484126
486577
491963
491978
507681
513480
514294
514647
517088
518441
518870
521159
523659
525881
527027
529300
529383
531080
534284
540800
546063
563443
581734
584720
589709
598863
599609
599659
599726
609953
619527
621655
621767
626944
628167
628423
669188
792617
792619
]
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 (384489 , 400169 , 400191 , 400517 , 402256 , 407662 , 415948 , 418934 , 418959 , 421155 , 431242 , 431422 , 434601 , 434608 , 442726 , 448687 , 448711 , 449635 , 449889 , 450847 , 457991 , 466152 , 467233 , 476345 , 480786 , 482555 , 484126 , 486577 , 491963 , 491978 , 507681 , 513480 , 514294 , 514647 , 517088 , 518441 , 518870 , 521159 , 523659 , 525881 , 527027 , 529300 , 529383 , 531080 , 534284 , 540800 , 546063 , 563443 , 581734 , 584720 , 589709 , 598863 , 599609 , 599659 , 599726 , 609953 , 619527 , 621655 , 621767 , 626944 , 628167 , 628423 , 669188 , 792617 , 792619 );
Copy