4
15.40 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
777181
712446
593757
623690
764363
811833
485191
682139
717357
623670
770518
701846
575398
569925
813688
623677
682198
623683
795690
765821
777073
808624
566157
700990
799639
790239
814933
729776
536679
526440
674681
713639
507169
681478
633744
512533
557552
822854
767096
823051
823223
785042
821494
821484
822264
668657
751560
755468
818380
820394
815440
824501
815305
815208
542065
687917
697758
803069
821145
546117
792609
497388
453608
546118
520766
590256
680195
680197
580669
]
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 (777181 , 712446 , 593757 , 623690 , 764363 , 811833 , 485191 , 682139 , 717357 , 623670 , 770518 , 701846 , 575398 , 569925 , 813688 , 623677 , 682198 , 623683 , 795690 , 765821 , 777073 , 808624 , 566157 , 700990 , 799639 , 790239 , 814933 , 729776 , 536679 , 526440 , 674681 , 713639 , 507169 , 681478 , 633744 , 512533 , 557552 , 822854 , 767096 , 823051 , 823223 , 785042 , 821494 , 821484 , 822264 , 668657 , 751560 , 755468 , 818380 , 820394 , 815440 , 824501 , 815305 , 815208 , 542065 , 687917 , 697758 , 803069 , 821145 , 546117 , 792609 , 497388 , 453608 , 546118 , 520766 , 590256 , 680195 , 680197 , 580669 );
Copy
5
2.68 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
453608
485191
497388
507169
512533
520766
526440
536679
542065
546117
546118
557552
566157
569925
575398
580669
590256
593757
623670
623677
623683
623690
633744
668657
674681
680195
680197
681478
682139
682198
687917
697758
700990
701846
712446
713639
717357
729776
751560
755468
764363
765821
767096
770518
777073
777181
785042
790239
792609
795690
799639
803069
808624
811833
813688
814933
815208
815305
815440
818380
820394
821145
821484
821494
822264
822854
823051
823223
824501
]
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 (453608 , 485191 , 497388 , 507169 , 512533 , 520766 , 526440 , 536679 , 542065 , 546117 , 546118 , 557552 , 566157 , 569925 , 575398 , 580669 , 590256 , 593757 , 623670 , 623677 , 623683 , 623690 , 633744 , 668657 , 674681 , 680195 , 680197 , 681478 , 682139 , 682198 , 687917 , 697758 , 700990 , 701846 , 712446 , 713639 , 717357 , 729776 , 751560 , 755468 , 764363 , 765821 , 767096 , 770518 , 777073 , 777181 , 785042 , 790239 , 792609 , 795690 , 799639 , 803069 , 808624 , 811833 , 813688 , 814933 , 815208 , 815305 , 815440 , 818380 , 820394 , 821145 , 821484 , 821494 , 822264 , 822854 , 823051 , 823223 , 824501 );
Copy
6
87.46 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
453608
485191
497388
507169
512533
520766
526440
536679
542065
546117
546118
557552
566157
569925
575398
580669
590256
593757
623670
623677
623683
623690
633744
668657
674681
680195
680197
681478
682139
682198
687917
697758
700990
701846
712446
713639
717357
729776
751560
755468
764363
765821
767096
770518
777073
777181
785042
790239
792609
795690
799639
803069
808624
811833
813688
814933
815208
815305
815440
818380
820394
821145
821484
821494
822264
822854
823051
823223
824501
]
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 (453608 , 485191 , 497388 , 507169 , 512533 , 520766 , 526440 , 536679 , 542065 , 546117 , 546118 , 557552 , 566157 , 569925 , 575398 , 580669 , 590256 , 593757 , 623670 , 623677 , 623683 , 623690 , 633744 , 668657 , 674681 , 680195 , 680197 , 681478 , 682139 , 682198 , 687917 , 697758 , 700990 , 701846 , 712446 , 713639 , 717357 , 729776 , 751560 , 755468 , 764363 , 765821 , 767096 , 770518 , 777073 , 777181 , 785042 , 790239 , 792609 , 795690 , 799639 , 803069 , 808624 , 811833 , 813688 , 814933 , 815208 , 815305 , 815440 , 818380 , 820394 , 821145 , 821484 , 821494 , 822264 , 822854 , 823051 , 823223 , 824501 );
Copy