3
10.83 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
385680
514434
390813
655107
655613
655367
661948
635167
432977
193837
391517
728463
752949
404493
453118
658296
392602
390175
771853
447200
240800
398715
229105
383325
385248
682387
419282
654724
570003
419102
383795
677042
669959
512296
661705
383516
657057
431496
437833
542979
400496
426180
403614
460590
401185
460600
498143
812585
503863
515858
466174
571565
552476
530999
569134
505775
574322
810902
652981
608787
608560
570866
621520
]
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 (385680 , 514434 , 390813 , 655107 , 655613 , 655367 , 661948 , 635167 , 432977 , 193837 , 391517 , 728463 , 752949 , 404493 , 453118 , 658296 , 392602 , 390175 , 771853 , 447200 , 240800 , 398715 , 229105 , 383325 , 385248 , 682387 , 419282 , 654724 , 570003 , 419102 , 383795 , 677042 , 669959 , 512296 , 661705 , 383516 , 657057 , 431496 , 437833 , 542979 , 400496 , 426180 , 403614 , 460590 , 401185 , 460600 , 498143 , 812585 , 503863 , 515858 , 466174 , 571565 , 552476 , 530999 , 569134 , 505775 , 574322 , 810902 , 652981 , 608787 , 608560 , 570866 , 621520 );
Copy
4
2.48 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
193837
229105
240800
383325
383516
383795
385248
385680
390175
390813
391517
392602
398715
400496
401185
403614
404493
419102
419282
426180
431496
432977
437833
447200
453118
460590
460600
466174
498143
503863
505775
512296
514434
515858
530999
542979
552476
569134
570003
570866
571565
574322
608560
608787
621520
635167
652981
654724
655107
655367
655613
657057
658296
661705
661948
669959
677042
682387
728463
752949
771853
810902
812585
]
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 (193837 , 229105 , 240800 , 383325 , 383516 , 383795 , 385248 , 385680 , 390175 , 390813 , 391517 , 392602 , 398715 , 400496 , 401185 , 403614 , 404493 , 419102 , 419282 , 426180 , 431496 , 432977 , 437833 , 447200 , 453118 , 460590 , 460600 , 466174 , 498143 , 503863 , 505775 , 512296 , 514434 , 515858 , 530999 , 542979 , 552476 , 569134 , 570003 , 570866 , 571565 , 574322 , 608560 , 608787 , 621520 , 635167 , 652981 , 654724 , 655107 , 655367 , 655613 , 657057 , 658296 , 661705 , 661948 , 669959 , 677042 , 682387 , 728463 , 752949 , 771853 , 810902 , 812585 );
Copy
5
69.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
193837
229105
240800
383325
383516
383795
385248
385680
390175
390813
391517
392602
398715
400496
401185
403614
404493
419102
419282
426180
431496
432977
437833
447200
453118
460590
460600
466174
498143
503863
505775
512296
514434
515858
530999
542979
552476
569134
570003
570866
571565
574322
608560
608787
621520
635167
652981
654724
655107
655367
655613
657057
658296
661705
661948
669959
677042
682387
728463
752949
771853
810902
812585
]
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 (193837 , 229105 , 240800 , 383325 , 383516 , 383795 , 385248 , 385680 , 390175 , 390813 , 391517 , 392602 , 398715 , 400496 , 401185 , 403614 , 404493 , 419102 , 419282 , 426180 , 431496 , 432977 , 437833 , 447200 , 453118 , 460590 , 460600 , 466174 , 498143 , 503863 , 505775 , 512296 , 514434 , 515858 , 530999 , 542979 , 552476 , 569134 , 570003 , 570866 , 571565 , 574322 , 608560 , 608787 , 621520 , 635167 , 652981 , 654724 , 655107 , 655367 , 655613 , 657057 , 658296 , 661705 , 661948 , 669959 , 677042 , 682387 , 728463 , 752949 , 771853 , 810902 , 812585 );
Copy