3
13.81 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
457770
564923
123271
382954
742186
123042
807200
457411
548740
388782
677099
470001
546681
502786
551260
388481
543971
748251
466382
488560
501752
456432
512330
506812
564668
389499
409904
557945
477895
445689
603255
515723
418359
466554
514104
443982
634487
470797
463748
470257
584654
588295
467597
408467
472775
476251
447240
543374
433110
661272
504165
655705
626942
490061
601125
506801
562358
611986
609279
651937
605545
478672
674762
527967
]
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 (457770 , 564923 , 123271 , 382954 , 742186 , 123042 , 807200 , 457411 , 548740 , 388782 , 677099 , 470001 , 546681 , 502786 , 551260 , 388481 , 543971 , 748251 , 466382 , 488560 , 501752 , 456432 , 512330 , 506812 , 564668 , 389499 , 409904 , 557945 , 477895 , 445689 , 603255 , 515723 , 418359 , 466554 , 514104 , 443982 , 634487 , 470797 , 463748 , 470257 , 584654 , 588295 , 467597 , 408467 , 472775 , 476251 , 447240 , 543374 , 433110 , 661272 , 504165 , 655705 , 626942 , 490061 , 601125 , 506801 , 562358 , 611986 , 609279 , 651937 , 605545 , 478672 , 674762 , 527967 );
Copy
4
2.43 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
123042
123271
382954
388481
388782
389499
408467
409904
418359
433110
443982
445689
447240
456432
457411
457770
463748
466382
466554
467597
470001
470257
470797
472775
476251
477895
478672
488560
490061
501752
502786
504165
506801
506812
512330
514104
515723
527967
543374
543971
546681
548740
551260
557945
562358
564668
564923
584654
588295
601125
603255
605545
609279
611986
626942
634487
651937
655705
661272
674762
677099
742186
748251
807200
]
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 (123042 , 123271 , 382954 , 388481 , 388782 , 389499 , 408467 , 409904 , 418359 , 433110 , 443982 , 445689 , 447240 , 456432 , 457411 , 457770 , 463748 , 466382 , 466554 , 467597 , 470001 , 470257 , 470797 , 472775 , 476251 , 477895 , 478672 , 488560 , 490061 , 501752 , 502786 , 504165 , 506801 , 506812 , 512330 , 514104 , 515723 , 527967 , 543374 , 543971 , 546681 , 548740 , 551260 , 557945 , 562358 , 564668 , 564923 , 584654 , 588295 , 601125 , 603255 , 605545 , 609279 , 611986 , 626942 , 634487 , 651937 , 655705 , 661272 , 674762 , 677099 , 742186 , 748251 , 807200 );
Copy
5
74.65 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
123042
123271
382954
388481
388782
389499
408467
409904
418359
433110
443982
445689
447240
456432
457411
457770
463748
466382
466554
467597
470001
470257
470797
472775
476251
477895
478672
488560
490061
501752
502786
504165
506801
506812
512330
514104
515723
527967
543374
543971
546681
548740
551260
557945
562358
564668
564923
584654
588295
601125
603255
605545
609279
611986
626942
634487
651937
655705
661272
674762
677099
742186
748251
807200
]
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 (123042 , 123271 , 382954 , 388481 , 388782 , 389499 , 408467 , 409904 , 418359 , 433110 , 443982 , 445689 , 447240 , 456432 , 457411 , 457770 , 463748 , 466382 , 466554 , 467597 , 470001 , 470257 , 470797 , 472775 , 476251 , 477895 , 478672 , 488560 , 490061 , 501752 , 502786 , 504165 , 506801 , 506812 , 512330 , 514104 , 515723 , 527967 , 543374 , 543971 , 546681 , 548740 , 551260 , 557945 , 562358 , 564668 , 564923 , 584654 , 588295 , 601125 , 603255 , 605545 , 609279 , 611986 , 626942 , 634487 , 651937 , 655705 , 661272 , 674762 , 677099 , 742186 , 748251 , 807200 );
Copy