3
12.71 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
231299
414117
414069
416652
414253
400023
413237
423635
400943
399568
441021
446650
417999
418144
382448
445376
391563
424001
154240
386535
382793
406372
412852
418840
195913
398236
387562
386771
425181
414104
416632
443198
416644
400638
418989
416561
441355
415965
404369
416751
421345
443239
440052
441049
423568
446797
446031
434293
409828
405961
436358
437519
414723
427027
443476
447500
429793
447926
389208
423382
433885
430561
434530
434000
]
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 (231299 , 414117 , 414069 , 416652 , 414253 , 400023 , 413237 , 423635 , 400943 , 399568 , 441021 , 446650 , 417999 , 418144 , 382448 , 445376 , 391563 , 424001 , 154240 , 386535 , 382793 , 406372 , 412852 , 418840 , 195913 , 398236 , 387562 , 386771 , 425181 , 414104 , 416632 , 443198 , 416644 , 400638 , 418989 , 416561 , 441355 , 415965 , 404369 , 416751 , 421345 , 443239 , 440052 , 441049 , 423568 , 446797 , 446031 , 434293 , 409828 , 405961 , 436358 , 437519 , 414723 , 427027 , 443476 , 447500 , 429793 , 447926 , 389208 , 423382 , 433885 , 430561 , 434530 , 434000 );
Copy
4
2.24 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
154240
195913
231299
382448
382793
386535
386771
387562
389208
391563
398236
399568
400023
400638
400943
404369
405961
406372
409828
412852
413237
414069
414104
414117
414253
414723
415965
416561
416632
416644
416652
416751
417999
418144
418840
418989
421345
423382
423568
423635
424001
425181
427027
429793
430561
433885
434000
434293
434530
436358
437519
440052
441021
441049
441355
443198
443239
443476
445376
446031
446650
446797
447500
447926
]
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 (154240 , 195913 , 231299 , 382448 , 382793 , 386535 , 386771 , 387562 , 389208 , 391563 , 398236 , 399568 , 400023 , 400638 , 400943 , 404369 , 405961 , 406372 , 409828 , 412852 , 413237 , 414069 , 414104 , 414117 , 414253 , 414723 , 415965 , 416561 , 416632 , 416644 , 416652 , 416751 , 417999 , 418144 , 418840 , 418989 , 421345 , 423382 , 423568 , 423635 , 424001 , 425181 , 427027 , 429793 , 430561 , 433885 , 434000 , 434293 , 434530 , 436358 , 437519 , 440052 , 441021 , 441049 , 441355 , 443198 , 443239 , 443476 , 445376 , 446031 , 446650 , 446797 , 447500 , 447926 );
Copy
5
103.68 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
154240
195913
231299
382448
382793
386535
386771
387562
389208
391563
398236
399568
400023
400638
400943
404369
405961
406372
409828
412852
413237
414069
414104
414117
414253
414723
415965
416561
416632
416644
416652
416751
417999
418144
418840
418989
421345
423382
423568
423635
424001
425181
427027
429793
430561
433885
434000
434293
434530
436358
437519
440052
441021
441049
441355
443198
443239
443476
445376
446031
446650
446797
447500
447926
]
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 (154240 , 195913 , 231299 , 382448 , 382793 , 386535 , 386771 , 387562 , 389208 , 391563 , 398236 , 399568 , 400023 , 400638 , 400943 , 404369 , 405961 , 406372 , 409828 , 412852 , 413237 , 414069 , 414104 , 414117 , 414253 , 414723 , 415965 , 416561 , 416632 , 416644 , 416652 , 416751 , 417999 , 418144 , 418840 , 418989 , 421345 , 423382 , 423568 , 423635 , 424001 , 425181 , 427027 , 429793 , 430561 , 433885 , 434000 , 434293 , 434530 , 436358 , 437519 , 440052 , 441021 , 441049 , 441355 , 443198 , 443239 , 443476 , 445376 , 446031 , 446650 , 446797 , 447500 , 447926 );
Copy