3
14.86 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
598702
410146
465038
511690
561632
482444
131776
449825
483780
403556
561664
510704
451765
471920
12128
487421
474604
564462
556845
465972
503636
514141
503400
391043
565174
522057
445055
453815
482818
476234
461820
575436
653547
429235
561713
458054
437926
446923
452701
419293
459486
457875
439358
574527
443031
467762
595437
550430
557657
446932
428382
524526
433253
489023
463002
557646
446344
615248
599044
518248
522049
408563
556851
609100
599326
568055
618826
625404
514997
521815
]
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 (598702 , 410146 , 465038 , 511690 , 561632 , 482444 , 131776 , 449825 , 483780 , 403556 , 561664 , 510704 , 451765 , 471920 , 12128 , 487421 , 474604 , 564462 , 556845 , 465972 , 503636 , 514141 , 503400 , 391043 , 565174 , 522057 , 445055 , 453815 , 482818 , 476234 , 461820 , 575436 , 653547 , 429235 , 561713 , 458054 , 437926 , 446923 , 452701 , 419293 , 459486 , 457875 , 439358 , 574527 , 443031 , 467762 , 595437 , 550430 , 557657 , 446932 , 428382 , 524526 , 433253 , 489023 , 463002 , 557646 , 446344 , 615248 , 599044 , 518248 , 522049 , 408563 , 556851 , 609100 , 599326 , 568055 , 618826 , 625404 , 514997 , 521815 );
Copy
4
3.39 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
12128
131776
391043
403556
408563
410146
419293
428382
429235
433253
437926
439358
443031
445055
446344
446923
446932
449825
451765
452701
453815
457875
458054
459486
461820
463002
465038
465972
467762
471920
474604
476234
482444
482818
483780
487421
489023
503400
503636
510704
511690
514141
514997
518248
521815
522049
522057
524526
550430
556845
556851
557646
557657
561632
561664
561713
564462
565174
568055
574527
575436
595437
598702
599044
599326
609100
615248
618826
625404
653547
]
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 (12128 , 131776 , 391043 , 403556 , 408563 , 410146 , 419293 , 428382 , 429235 , 433253 , 437926 , 439358 , 443031 , 445055 , 446344 , 446923 , 446932 , 449825 , 451765 , 452701 , 453815 , 457875 , 458054 , 459486 , 461820 , 463002 , 465038 , 465972 , 467762 , 471920 , 474604 , 476234 , 482444 , 482818 , 483780 , 487421 , 489023 , 503400 , 503636 , 510704 , 511690 , 514141 , 514997 , 518248 , 521815 , 522049 , 522057 , 524526 , 550430 , 556845 , 556851 , 557646 , 557657 , 561632 , 561664 , 561713 , 564462 , 565174 , 568055 , 574527 , 575436 , 595437 , 598702 , 599044 , 599326 , 609100 , 615248 , 618826 , 625404 , 653547 );
Copy
5
143.19 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
12128
131776
391043
403556
408563
410146
419293
428382
429235
433253
437926
439358
443031
445055
446344
446923
446932
449825
451765
452701
453815
457875
458054
459486
461820
463002
465038
465972
467762
471920
474604
476234
482444
482818
483780
487421
489023
503400
503636
510704
511690
514141
514997
518248
521815
522049
522057
524526
550430
556845
556851
557646
557657
561632
561664
561713
564462
565174
568055
574527
575436
595437
598702
599044
599326
609100
615248
618826
625404
653547
]
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 (12128 , 131776 , 391043 , 403556 , 408563 , 410146 , 419293 , 428382 , 429235 , 433253 , 437926 , 439358 , 443031 , 445055 , 446344 , 446923 , 446932 , 449825 , 451765 , 452701 , 453815 , 457875 , 458054 , 459486 , 461820 , 463002 , 465038 , 465972 , 467762 , 471920 , 474604 , 476234 , 482444 , 482818 , 483780 , 487421 , 489023 , 503400 , 503636 , 510704 , 511690 , 514141 , 514997 , 518248 , 521815 , 522049 , 522057 , 524526 , 550430 , 556845 , 556851 , 557646 , 557657 , 561632 , 561664 , 561713 , 564462 , 565174 , 568055 , 574527 , 575436 , 595437 , 598702 , 599044 , 599326 , 609100 , 615248 , 618826 , 625404 , 653547 );
Copy