6
10.32 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
401510
401232
399016
397884
397666
397025
396801
396765
396400
396393
396316
392678
391581
391483
391315
388005
387485
386134
384914
384865
384384
383432
383366
383294
382518
382212
381991
381817
373048
372986
365840
348918
335472
291689
279212
278764
278488
278442
268637
261656
233915
199489
188176
181902
177802
100642
97045
83312
52454
52231
51569
51524
50215
49767
49688
49582
49426
39167
39054
38263
33974
31106
21397
]
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 (401510 , 401232 , 399016 , 397884 , 397666 , 397025 , 396801 , 396765 , 396400 , 396393 , 396316 , 392678 , 391581 , 391483 , 391315 , 388005 , 387485 , 386134 , 384914 , 384865 , 384384 , 383432 , 383366 , 383294 , 382518 , 382212 , 381991 , 381817 , 373048 , 372986 , 365840 , 348918 , 335472 , 291689 , 279212 , 278764 , 278488 , 278442 , 268637 , 261656 , 233915 , 199489 , 188176 , 181902 , 177802 , 100642 , 97045 , 83312 , 52454 , 52231 , 51569 , 51524 , 50215 , 49767 , 49688 , 49582 , 49426 , 39167 , 39054 , 38263 , 33974 , 31106 , 21397 );
Copy
7
2.91 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
21397
31106
33974
38263
39054
39167
49426
49582
49688
49767
50215
51524
51569
52231
52454
83312
97045
100642
177802
181902
188176
199489
233915
261656
268637
278442
278488
278764
279212
291689
335472
348918
365840
372986
373048
381817
381991
382212
382518
383294
383366
383432
384384
384865
384914
386134
387485
388005
391315
391483
391581
392678
396316
396393
396400
396765
396801
397025
397666
397884
399016
401232
401510
]
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 (21397 , 31106 , 33974 , 38263 , 39054 , 39167 , 49426 , 49582 , 49688 , 49767 , 50215 , 51524 , 51569 , 52231 , 52454 , 83312 , 97045 , 100642 , 177802 , 181902 , 188176 , 199489 , 233915 , 261656 , 268637 , 278442 , 278488 , 278764 , 279212 , 291689 , 335472 , 348918 , 365840 , 372986 , 373048 , 381817 , 381991 , 382212 , 382518 , 383294 , 383366 , 383432 , 384384 , 384865 , 384914 , 386134 , 387485 , 388005 , 391315 , 391483 , 391581 , 392678 , 396316 , 396393 , 396400 , 396765 , 396801 , 397025 , 397666 , 397884 , 399016 , 401232 , 401510 );
Copy
8
75.87 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
21397
31106
33974
38263
39054
39167
49426
49582
49688
49767
50215
51524
51569
52231
52454
83312
97045
100642
177802
181902
188176
199489
233915
261656
268637
278442
278488
278764
279212
291689
335472
348918
365840
372986
373048
381817
381991
382212
382518
383294
383366
383432
384384
384865
384914
386134
387485
388005
391315
391483
391581
392678
396316
396393
396400
396765
396801
397025
397666
397884
399016
401232
401510
]
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 (21397 , 31106 , 33974 , 38263 , 39054 , 39167 , 49426 , 49582 , 49688 , 49767 , 50215 , 51524 , 51569 , 52231 , 52454 , 83312 , 97045 , 100642 , 177802 , 181902 , 188176 , 199489 , 233915 , 261656 , 268637 , 278442 , 278488 , 278764 , 279212 , 291689 , 335472 , 348918 , 365840 , 372986 , 373048 , 381817 , 381991 , 382212 , 382518 , 383294 , 383366 , 383432 , 384384 , 384865 , 384914 , 386134 , 387485 , 388005 , 391315 , 391483 , 391581 , 392678 , 396316 , 396393 , 396400 , 396765 , 396801 , 397025 , 397666 , 397884 , 399016 , 401232 , 401510 );
Copy