4
9.52 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
717919
703718
703736
816698
813626
577610
602048
597448
751943
766174
726721
551600
810927
766317
777829
809939
469194
695552
780165
805261
734330
740417
797709
797719
743658
427144
713240
811802
437441
437551
463442
525139
707867
718060
419352
690066
561427
571769
621496
459075
460384
456838
501293
558592
480932
456413
526563
558323
564988
609343
595088
445383
519744
529505
525439
496809
464721
588876
520040
489615
558566
557028
507647
455351
]
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 (717919 , 703718 , 703736 , 816698 , 813626 , 577610 , 602048 , 597448 , 751943 , 766174 , 726721 , 551600 , 810927 , 766317 , 777829 , 809939 , 469194 , 695552 , 780165 , 805261 , 734330 , 740417 , 797709 , 797719 , 743658 , 427144 , 713240 , 811802 , 437441 , 437551 , 463442 , 525139 , 707867 , 718060 , 419352 , 690066 , 561427 , 571769 , 621496 , 459075 , 460384 , 456838 , 501293 , 558592 , 480932 , 456413 , 526563 , 558323 , 564988 , 609343 , 595088 , 445383 , 519744 , 529505 , 525439 , 496809 , 464721 , 588876 , 520040 , 489615 , 558566 , 557028 , 507647 , 455351 );
Copy
5
2.40 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
419352
427144
437441
437551
445383
455351
456413
456838
459075
460384
463442
464721
469194
480932
489615
496809
501293
507647
519744
520040
525139
525439
526563
529505
551600
557028
558323
558566
558592
561427
564988
571769
577610
588876
595088
597448
602048
609343
621496
690066
695552
703718
703736
707867
713240
717919
718060
726721
734330
740417
743658
751943
766174
766317
777829
780165
797709
797719
805261
809939
810927
811802
813626
816698
]
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 (419352 , 427144 , 437441 , 437551 , 445383 , 455351 , 456413 , 456838 , 459075 , 460384 , 463442 , 464721 , 469194 , 480932 , 489615 , 496809 , 501293 , 507647 , 519744 , 520040 , 525139 , 525439 , 526563 , 529505 , 551600 , 557028 , 558323 , 558566 , 558592 , 561427 , 564988 , 571769 , 577610 , 588876 , 595088 , 597448 , 602048 , 609343 , 621496 , 690066 , 695552 , 703718 , 703736 , 707867 , 713240 , 717919 , 718060 , 726721 , 734330 , 740417 , 743658 , 751943 , 766174 , 766317 , 777829 , 780165 , 797709 , 797719 , 805261 , 809939 , 810927 , 811802 , 813626 , 816698 );
Copy
6
321.52 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
419352
427144
437441
437551
445383
455351
456413
456838
459075
460384
463442
464721
469194
480932
489615
496809
501293
507647
519744
520040
525139
525439
526563
529505
551600
557028
558323
558566
558592
561427
564988
571769
577610
588876
595088
597448
602048
609343
621496
690066
695552
703718
703736
707867
713240
717919
718060
726721
734330
740417
743658
751943
766174
766317
777829
780165
797709
797719
805261
809939
810927
811802
813626
816698
]
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 (419352 , 427144 , 437441 , 437551 , 445383 , 455351 , 456413 , 456838 , 459075 , 460384 , 463442 , 464721 , 469194 , 480932 , 489615 , 496809 , 501293 , 507647 , 519744 , 520040 , 525139 , 525439 , 526563 , 529505 , 551600 , 557028 , 558323 , 558566 , 558592 , 561427 , 564988 , 571769 , 577610 , 588876 , 595088 , 597448 , 602048 , 609343 , 621496 , 690066 , 695552 , 703718 , 703736 , 707867 , 713240 , 717919 , 718060 , 726721 , 734330 , 740417 , 743658 , 751943 , 766174 , 766317 , 777829 , 780165 , 797709 , 797719 , 805261 , 809939 , 810927 , 811802 , 813626 , 816698 );
Copy