7
7.68 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
414702
414301
413731
413639
413455
413417
410428
410124
407550
407159
404212
403401
401453
400896
398679
398387
398369
397867
397775
397690
397495
397401
396909
396526
396421
396335
394589
394453
391707
390447
387717
387647
386731
385166
385040
382468
382371
382163
351047
337088
336884
312730
147073
133943
108764
81810
81656
81526
81496
81412
81065
79781
76981
76853
70359
69932
69883
69876
69871
69704
39167
3100
]
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 (414702 , 414301 , 413731 , 413639 , 413455 , 413417 , 410428 , 410124 , 407550 , 407159 , 404212 , 403401 , 401453 , 400896 , 398679 , 398387 , 398369 , 397867 , 397775 , 397690 , 397495 , 397401 , 396909 , 396526 , 396421 , 396335 , 394589 , 394453 , 391707 , 390447 , 387717 , 387647 , 386731 , 385166 , 385040 , 382468 , 382371 , 382163 , 351047 , 337088 , 336884 , 312730 , 147073 , 133943 , 108764 , 81810 , 81656 , 81526 , 81496 , 81412 , 81065 , 79781 , 76981 , 76853 , 70359 , 69932 , 69883 , 69876 , 69871 , 69704 , 39167 , 3100 );
Copy
8
2.29 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
3100
39167
69704
69871
69876
69883
69932
70359
76853
76981
79781
81065
81412
81496
81526
81656
81810
108764
133943
147073
312730
336884
337088
351047
382163
382371
382468
385040
385166
386731
387647
387717
390447
391707
394453
394589
396335
396421
396526
396909
397401
397495
397690
397775
397867
398369
398387
398679
400896
401453
403401
404212
407159
407550
410124
410428
413417
413455
413639
413731
414301
414702
]
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 (3100 , 39167 , 69704 , 69871 , 69876 , 69883 , 69932 , 70359 , 76853 , 76981 , 79781 , 81065 , 81412 , 81496 , 81526 , 81656 , 81810 , 108764 , 133943 , 147073 , 312730 , 336884 , 337088 , 351047 , 382163 , 382371 , 382468 , 385040 , 385166 , 386731 , 387647 , 387717 , 390447 , 391707 , 394453 , 394589 , 396335 , 396421 , 396526 , 396909 , 397401 , 397495 , 397690 , 397775 , 397867 , 398369 , 398387 , 398679 , 400896 , 401453 , 403401 , 404212 , 407159 , 407550 , 410124 , 410428 , 413417 , 413455 , 413639 , 413731 , 414301 , 414702 );
Copy
9
85.53 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
3100
39167
69704
69871
69876
69883
69932
70359
76853
76981
79781
81065
81412
81496
81526
81656
81810
108764
133943
147073
312730
336884
337088
351047
382163
382371
382468
385040
385166
386731
387647
387717
390447
391707
394453
394589
396335
396421
396526
396909
397401
397495
397690
397775
397867
398369
398387
398679
400896
401453
403401
404212
407159
407550
410124
410428
413417
413455
413639
413731
414301
414702
]
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 (3100 , 39167 , 69704 , 69871 , 69876 , 69883 , 69932 , 70359 , 76853 , 76981 , 79781 , 81065 , 81412 , 81496 , 81526 , 81656 , 81810 , 108764 , 133943 , 147073 , 312730 , 336884 , 337088 , 351047 , 382163 , 382371 , 382468 , 385040 , 385166 , 386731 , 387647 , 387717 , 390447 , 391707 , 394453 , 394589 , 396335 , 396421 , 396526 , 396909 , 397401 , 397495 , 397690 , 397775 , 397867 , 398369 , 398387 , 398679 , 400896 , 401453 , 403401 , 404212 , 407159 , 407550 , 410124 , 410428 , 413417 , 413455 , 413639 , 413731 , 414301 , 414702 );
Copy