4
11.22 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
533279
566891
813655
453308
504704
651653
426598
721054
618341
789883
601757
533282
618329
806010
741610
726319
595688
808630
789881
727588
814773
586164
598265
795493
808385
395638
681014
776790
529093
585731
605379
732127
582955
622230
525739
433259
521593
683901
538854
552278
681833
823194
646442
690016
606687
311005
820849
606675
6981
815478
448045
651592
730369
476206
415596
484468
470073
747943
399596
409045
462371
575059
646336
453314
528074
528076
603364
]
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 (533279 , 566891 , 813655 , 453308 , 504704 , 651653 , 426598 , 721054 , 618341 , 789883 , 601757 , 533282 , 618329 , 806010 , 741610 , 726319 , 595688 , 808630 , 789881 , 727588 , 814773 , 586164 , 598265 , 795493 , 808385 , 395638 , 681014 , 776790 , 529093 , 585731 , 605379 , 732127 , 582955 , 622230 , 525739 , 433259 , 521593 , 683901 , 538854 , 552278 , 681833 , 823194 , 646442 , 690016 , 606687 , 311005 , 820849 , 606675 , 6981 , 815478 , 448045 , 651592 , 730369 , 476206 , 415596 , 484468 , 470073 , 747943 , 399596 , 409045 , 462371 , 575059 , 646336 , 453314 , 528074 , 528076 , 603364 );
Copy
5
3.41 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
6981
311005
395638
399596
409045
415596
426598
433259
448045
453308
453314
462371
470073
476206
484468
504704
521593
525739
528074
528076
529093
533279
533282
538854
552278
566891
575059
582955
585731
586164
595688
598265
601757
603364
605379
606675
606687
618329
618341
622230
646336
646442
651592
651653
681014
681833
683901
690016
721054
726319
727588
730369
732127
741610
747943
776790
789881
789883
795493
806010
808385
808630
813655
814773
815478
820849
823194
]
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 (6981 , 311005 , 395638 , 399596 , 409045 , 415596 , 426598 , 433259 , 448045 , 453308 , 453314 , 462371 , 470073 , 476206 , 484468 , 504704 , 521593 , 525739 , 528074 , 528076 , 529093 , 533279 , 533282 , 538854 , 552278 , 566891 , 575059 , 582955 , 585731 , 586164 , 595688 , 598265 , 601757 , 603364 , 605379 , 606675 , 606687 , 618329 , 618341 , 622230 , 646336 , 646442 , 651592 , 651653 , 681014 , 681833 , 683901 , 690016 , 721054 , 726319 , 727588 , 730369 , 732127 , 741610 , 747943 , 776790 , 789881 , 789883 , 795493 , 806010 , 808385 , 808630 , 813655 , 814773 , 815478 , 820849 , 823194 );
Copy
6
98.38 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
6981
311005
395638
399596
409045
415596
426598
433259
448045
453308
453314
462371
470073
476206
484468
504704
521593
525739
528074
528076
529093
533279
533282
538854
552278
566891
575059
582955
585731
586164
595688
598265
601757
603364
605379
606675
606687
618329
618341
622230
646336
646442
651592
651653
681014
681833
683901
690016
721054
726319
727588
730369
732127
741610
747943
776790
789881
789883
795493
806010
808385
808630
813655
814773
815478
820849
823194
]
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 (6981 , 311005 , 395638 , 399596 , 409045 , 415596 , 426598 , 433259 , 448045 , 453308 , 453314 , 462371 , 470073 , 476206 , 484468 , 504704 , 521593 , 525739 , 528074 , 528076 , 529093 , 533279 , 533282 , 538854 , 552278 , 566891 , 575059 , 582955 , 585731 , 586164 , 595688 , 598265 , 601757 , 603364 , 605379 , 606675 , 606687 , 618329 , 618341 , 622230 , 646336 , 646442 , 651592 , 651653 , 681014 , 681833 , 683901 , 690016 , 721054 , 726319 , 727588 , 730369 , 732127 , 741610 , 747943 , 776790 , 789881 , 789883 , 795493 , 806010 , 808385 , 808630 , 813655 , 814773 , 815478 , 820849 , 823194 );
Copy