3
10.35 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
428286
803414
728947
656487
626324
674907
559729
709327
732812
779241
803406
747982
539331
558574
772343
718824
727980
718848
774251
772353
711672
610156
691205
809546
623289
796571
583510
625299
636546
711415
515338
804503
572649
648609
785921
773847
716653
556128
629104
745896
745917
800679
580895
806173
583558
554335
791406
580878
568540
796570
797011
535416
601754
511446
719808
608564
504517
579812
697026
697010
785657
569300
604301
626311
631878
575715
623616
]
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 (428286 , 803414 , 728947 , 656487 , 626324 , 674907 , 559729 , 709327 , 732812 , 779241 , 803406 , 747982 , 539331 , 558574 , 772343 , 718824 , 727980 , 718848 , 774251 , 772353 , 711672 , 610156 , 691205 , 809546 , 623289 , 796571 , 583510 , 625299 , 636546 , 711415 , 515338 , 804503 , 572649 , 648609 , 785921 , 773847 , 716653 , 556128 , 629104 , 745896 , 745917 , 800679 , 580895 , 806173 , 583558 , 554335 , 791406 , 580878 , 568540 , 796570 , 797011 , 535416 , 601754 , 511446 , 719808 , 608564 , 504517 , 579812 , 697026 , 697010 , 785657 , 569300 , 604301 , 626311 , 631878 , 575715 , 623616 );
Copy
4
2.47 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
428286
504517
511446
515338
535416
539331
554335
556128
558574
559729
568540
569300
572649
575715
579812
580878
580895
583510
583558
601754
604301
608564
610156
623289
623616
625299
626311
626324
629104
631878
636546
648609
656487
674907
691205
697010
697026
709327
711415
711672
716653
718824
718848
719808
727980
728947
732812
745896
745917
747982
772343
772353
773847
774251
779241
785657
785921
791406
796570
796571
797011
800679
803406
803414
804503
806173
809546
]
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 (428286 , 504517 , 511446 , 515338 , 535416 , 539331 , 554335 , 556128 , 558574 , 559729 , 568540 , 569300 , 572649 , 575715 , 579812 , 580878 , 580895 , 583510 , 583558 , 601754 , 604301 , 608564 , 610156 , 623289 , 623616 , 625299 , 626311 , 626324 , 629104 , 631878 , 636546 , 648609 , 656487 , 674907 , 691205 , 697010 , 697026 , 709327 , 711415 , 711672 , 716653 , 718824 , 718848 , 719808 , 727980 , 728947 , 732812 , 745896 , 745917 , 747982 , 772343 , 772353 , 773847 , 774251 , 779241 , 785657 , 785921 , 791406 , 796570 , 796571 , 797011 , 800679 , 803406 , 803414 , 804503 , 806173 , 809546 );
Copy
5
71.81 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
428286
504517
511446
515338
535416
539331
554335
556128
558574
559729
568540
569300
572649
575715
579812
580878
580895
583510
583558
601754
604301
608564
610156
623289
623616
625299
626311
626324
629104
631878
636546
648609
656487
674907
691205
697010
697026
709327
711415
711672
716653
718824
718848
719808
727980
728947
732812
745896
745917
747982
772343
772353
773847
774251
779241
785657
785921
791406
796570
796571
797011
800679
803406
803414
804503
806173
809546
]
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 (428286 , 504517 , 511446 , 515338 , 535416 , 539331 , 554335 , 556128 , 558574 , 559729 , 568540 , 569300 , 572649 , 575715 , 579812 , 580878 , 580895 , 583510 , 583558 , 601754 , 604301 , 608564 , 610156 , 623289 , 623616 , 625299 , 626311 , 626324 , 629104 , 631878 , 636546 , 648609 , 656487 , 674907 , 691205 , 697010 , 697026 , 709327 , 711415 , 711672 , 716653 , 718824 , 718848 , 719808 , 727980 , 728947 , 732812 , 745896 , 745917 , 747982 , 772343 , 772353 , 773847 , 774251 , 779241 , 785657 , 785921 , 791406 , 796570 , 796571 , 797011 , 800679 , 803406 , 803414 , 804503 , 806173 , 809546 );
Copy