3
10.50 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
603284
715378
785351
419078
575075
575093
554167
630504
823223
542404
695049
574562
491667
576055
707744
716182
731005
536125
565757
703967
585217
428852
565144
575789
574854
574914
575520
666420
682336
693961
575478
575483
575754
805847
759567
761291
803460
491669
491663
491672
491656
491686
574503
574805
575207
575469
575103
447812
464598
491662
484097
491666
527632
517143
526405
561344
574863
575786
575792
575493
443311
472350
527625
575115
575791
564494
619823
455096
491665
574916
576112
490091
]
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 (603284 , 715378 , 785351 , 419078 , 575075 , 575093 , 554167 , 630504 , 823223 , 542404 , 695049 , 574562 , 491667 , 576055 , 707744 , 716182 , 731005 , 536125 , 565757 , 703967 , 585217 , 428852 , 565144 , 575789 , 574854 , 574914 , 575520 , 666420 , 682336 , 693961 , 575478 , 575483 , 575754 , 805847 , 759567 , 761291 , 803460 , 491669 , 491663 , 491672 , 491656 , 491686 , 574503 , 574805 , 575207 , 575469 , 575103 , 447812 , 464598 , 491662 , 484097 , 491666 , 527632 , 517143 , 526405 , 561344 , 574863 , 575786 , 575792 , 575493 , 443311 , 472350 , 527625 , 575115 , 575791 , 564494 , 619823 , 455096 , 491665 , 574916 , 576112 , 490091 );
Copy
4
2.21 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
419078
428852
443311
447812
455096
464598
472350
484097
490091
491656
491662
491663
491665
491666
491667
491669
491672
491686
517143
526405
527625
527632
536125
542404
554167
561344
564494
565144
565757
574503
574562
574805
574854
574863
574914
574916
575075
575093
575103
575115
575207
575469
575478
575483
575493
575520
575754
575786
575789
575791
575792
576055
576112
585217
603284
619823
630504
666420
682336
693961
695049
703967
707744
715378
716182
731005
759567
761291
785351
803460
805847
823223
]
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 (419078 , 428852 , 443311 , 447812 , 455096 , 464598 , 472350 , 484097 , 490091 , 491656 , 491662 , 491663 , 491665 , 491666 , 491667 , 491669 , 491672 , 491686 , 517143 , 526405 , 527625 , 527632 , 536125 , 542404 , 554167 , 561344 , 564494 , 565144 , 565757 , 574503 , 574562 , 574805 , 574854 , 574863 , 574914 , 574916 , 575075 , 575093 , 575103 , 575115 , 575207 , 575469 , 575478 , 575483 , 575493 , 575520 , 575754 , 575786 , 575789 , 575791 , 575792 , 576055 , 576112 , 585217 , 603284 , 619823 , 630504 , 666420 , 682336 , 693961 , 695049 , 703967 , 707744 , 715378 , 716182 , 731005 , 759567 , 761291 , 785351 , 803460 , 805847 , 823223 );
Copy
5
90.31 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
419078
428852
443311
447812
455096
464598
472350
484097
490091
491656
491662
491663
491665
491666
491667
491669
491672
491686
517143
526405
527625
527632
536125
542404
554167
561344
564494
565144
565757
574503
574562
574805
574854
574863
574914
574916
575075
575093
575103
575115
575207
575469
575478
575483
575493
575520
575754
575786
575789
575791
575792
576055
576112
585217
603284
619823
630504
666420
682336
693961
695049
703967
707744
715378
716182
731005
759567
761291
785351
803460
805847
823223
]
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 (419078 , 428852 , 443311 , 447812 , 455096 , 464598 , 472350 , 484097 , 490091 , 491656 , 491662 , 491663 , 491665 , 491666 , 491667 , 491669 , 491672 , 491686 , 517143 , 526405 , 527625 , 527632 , 536125 , 542404 , 554167 , 561344 , 564494 , 565144 , 565757 , 574503 , 574562 , 574805 , 574854 , 574863 , 574914 , 574916 , 575075 , 575093 , 575103 , 575115 , 575207 , 575469 , 575478 , 575483 , 575493 , 575520 , 575754 , 575786 , 575789 , 575791 , 575792 , 576055 , 576112 , 585217 , 603284 , 619823 , 630504 , 666420 , 682336 , 693961 , 695049 , 703967 , 707744 , 715378 , 716182 , 731005 , 759567 , 761291 , 785351 , 803460 , 805847 , 823223 );
Copy