3
11.95 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
826418
792704
558000
674309
826757
653479
536324
730819
741088
735870
480908
819960
758292
819259
707642
517886
814990
728667
735959
728648
799872
685263
788490
602635
427135
776829
750198
819262
686177
499493
808319
807310
813559
814986
590410
819360
545905
731104
811702
797461
811152
492620
465221
466092
504185
577330
463159
488954
564367
465467
814981
814983
481386
504327
489714
509656
813532
696128
552983
697457
644047
819920
814971
450990
457832
446920
453705
453686
490188
667975
668668
455749
495738
]
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 (826418 , 792704 , 558000 , 674309 , 826757 , 653479 , 536324 , 730819 , 741088 , 735870 , 480908 , 819960 , 758292 , 819259 , 707642 , 517886 , 814990 , 728667 , 735959 , 728648 , 799872 , 685263 , 788490 , 602635 , 427135 , 776829 , 750198 , 819262 , 686177 , 499493 , 808319 , 807310 , 813559 , 814986 , 590410 , 819360 , 545905 , 731104 , 811702 , 797461 , 811152 , 492620 , 465221 , 466092 , 504185 , 577330 , 463159 , 488954 , 564367 , 465467 , 814981 , 814983 , 481386 , 504327 , 489714 , 509656 , 813532 , 696128 , 552983 , 697457 , 644047 , 819920 , 814971 , 450990 , 457832 , 446920 , 453705 , 453686 , 490188 , 667975 , 668668 , 455749 , 495738 );
Copy
4
2.56 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
427135
446920
450990
453686
453705
455749
457832
463159
465221
465467
466092
480908
481386
488954
489714
490188
492620
495738
499493
504185
504327
509656
517886
536324
545905
552983
558000
564367
577330
590410
602635
644047
653479
667975
668668
674309
685263
686177
696128
697457
707642
728667
730819
731104
735870
735959
741088
750198
758292
776829
788490
792704
797461
799872
807310
808319
811152
811702
813532
813559
814971
814981
814983
814986
814990
819259
819262
819360
819920
819960
826418
826757
]
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 (427135 , 446920 , 450990 , 453686 , 453705 , 455749 , 457832 , 463159 , 465221 , 465467 , 466092 , 480908 , 481386 , 488954 , 489714 , 490188 , 492620 , 495738 , 499493 , 504185 , 504327 , 509656 , 517886 , 536324 , 545905 , 552983 , 558000 , 564367 , 577330 , 590410 , 602635 , 644047 , 653479 , 667975 , 668668 , 674309 , 685263 , 686177 , 696128 , 697457 , 707642 , 728667 , 730819 , 731104 , 735870 , 735959 , 741088 , 750198 , 758292 , 776829 , 788490 , 792704 , 797461 , 799872 , 807310 , 808319 , 811152 , 811702 , 813532 , 813559 , 814971 , 814981 , 814983 , 814986 , 814990 , 819259 , 819262 , 819360 , 819920 , 819960 , 826418 , 826757 );
Copy
5
83.94 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
427135
446920
450990
453686
453705
455749
457832
463159
465221
465467
466092
480908
481386
488954
489714
490188
492620
495738
499493
504185
504327
509656
517886
536324
545905
552983
558000
564367
577330
590410
602635
644047
653479
667975
668668
674309
685263
686177
696128
697457
707642
728667
730819
731104
735870
735959
741088
750198
758292
776829
788490
792704
797461
799872
807310
808319
811152
811702
813532
813559
814971
814981
814983
814986
814990
819259
819262
819360
819920
819960
826418
826757
]
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 (427135 , 446920 , 450990 , 453686 , 453705 , 455749 , 457832 , 463159 , 465221 , 465467 , 466092 , 480908 , 481386 , 488954 , 489714 , 490188 , 492620 , 495738 , 499493 , 504185 , 504327 , 509656 , 517886 , 536324 , 545905 , 552983 , 558000 , 564367 , 577330 , 590410 , 602635 , 644047 , 653479 , 667975 , 668668 , 674309 , 685263 , 686177 , 696128 , 697457 , 707642 , 728667 , 730819 , 731104 , 735870 , 735959 , 741088 , 750198 , 758292 , 776829 , 788490 , 792704 , 797461 , 799872 , 807310 , 808319 , 811152 , 811702 , 813532 , 813559 , 814971 , 814981 , 814983 , 814986 , 814990 , 819259 , 819262 , 819360 , 819920 , 819960 , 826418 , 826757 );
Copy