3
13.15 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
765938
387050
401939
397688
459106
419201
796563
515596
637802
455396
445053
415837
427326
457340
472873
498905
518980
455375
514130
425314
496285
500098
557620
560538
551719
385458
556363
782847
388773
657735
525308
184735
500089
549648
796543
472614
498880
569639
625759
642191
540888
559035
569817
545821
647138
591461
591587
478908
663909
573498
617973
591627
479583
479600
522293
505572
551960
552841
568777
587529
456745
521510
510562
530449
565724
520700
619308
591203
602397
625404
]
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 (765938 , 387050 , 401939 , 397688 , 459106 , 419201 , 796563 , 515596 , 637802 , 455396 , 445053 , 415837 , 427326 , 457340 , 472873 , 498905 , 518980 , 455375 , 514130 , 425314 , 496285 , 500098 , 557620 , 560538 , 551719 , 385458 , 556363 , 782847 , 388773 , 657735 , 525308 , 184735 , 500089 , 549648 , 796543 , 472614 , 498880 , 569639 , 625759 , 642191 , 540888 , 559035 , 569817 , 545821 , 647138 , 591461 , 591587 , 478908 , 663909 , 573498 , 617973 , 591627 , 479583 , 479600 , 522293 , 505572 , 551960 , 552841 , 568777 , 587529 , 456745 , 521510 , 510562 , 530449 , 565724 , 520700 , 619308 , 591203 , 602397 , 625404 );
Copy
4
3.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
184735
385458
387050
388773
397688
401939
415837
419201
425314
427326
445053
455375
455396
456745
457340
459106
472614
472873
478908
479583
479600
496285
498880
498905
500089
500098
505572
510562
514130
515596
518980
520700
521510
522293
525308
530449
540888
545821
549648
551719
551960
552841
556363
557620
559035
560538
565724
568777
569639
569817
573498
587529
591203
591461
591587
591627
602397
617973
619308
625404
625759
637802
642191
647138
657735
663909
765938
782847
796543
796563
]
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 (184735 , 385458 , 387050 , 388773 , 397688 , 401939 , 415837 , 419201 , 425314 , 427326 , 445053 , 455375 , 455396 , 456745 , 457340 , 459106 , 472614 , 472873 , 478908 , 479583 , 479600 , 496285 , 498880 , 498905 , 500089 , 500098 , 505572 , 510562 , 514130 , 515596 , 518980 , 520700 , 521510 , 522293 , 525308 , 530449 , 540888 , 545821 , 549648 , 551719 , 551960 , 552841 , 556363 , 557620 , 559035 , 560538 , 565724 , 568777 , 569639 , 569817 , 573498 , 587529 , 591203 , 591461 , 591587 , 591627 , 602397 , 617973 , 619308 , 625404 , 625759 , 637802 , 642191 , 647138 , 657735 , 663909 , 765938 , 782847 , 796543 , 796563 );
Copy
5
132.25 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
184735
385458
387050
388773
397688
401939
415837
419201
425314
427326
445053
455375
455396
456745
457340
459106
472614
472873
478908
479583
479600
496285
498880
498905
500089
500098
505572
510562
514130
515596
518980
520700
521510
522293
525308
530449
540888
545821
549648
551719
551960
552841
556363
557620
559035
560538
565724
568777
569639
569817
573498
587529
591203
591461
591587
591627
602397
617973
619308
625404
625759
637802
642191
647138
657735
663909
765938
782847
796543
796563
]
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 (184735 , 385458 , 387050 , 388773 , 397688 , 401939 , 415837 , 419201 , 425314 , 427326 , 445053 , 455375 , 455396 , 456745 , 457340 , 459106 , 472614 , 472873 , 478908 , 479583 , 479600 , 496285 , 498880 , 498905 , 500089 , 500098 , 505572 , 510562 , 514130 , 515596 , 518980 , 520700 , 521510 , 522293 , 525308 , 530449 , 540888 , 545821 , 549648 , 551719 , 551960 , 552841 , 556363 , 557620 , 559035 , 560538 , 565724 , 568777 , 569639 , 569817 , 573498 , 587529 , 591203 , 591461 , 591587 , 591627 , 602397 , 617973 , 619308 , 625404 , 625759 , 637802 , 642191 , 647138 , 657735 , 663909 , 765938 , 782847 , 796543 , 796563 );
Copy