3
11.25 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
409008
407925
409391
384423
408539
388628
429368
479800
455327
400137
427879
459649
504347
580197
430818
523757
432359
428987
430979
414973
597028
460479
469073
24724
483451
428769
456638
426075
471839
456880
457720
491155
575197
409599
423372
479528
446630
458098
517389
485325
398049
426461
481464
463762
468586
397129
416606
429541
462994
419420
473109
483375
445661
564777
402835
469580
447549
431341
671128
396742
483626
570304
663537
]
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 (409008 , 407925 , 409391 , 384423 , 408539 , 388628 , 429368 , 479800 , 455327 , 400137 , 427879 , 459649 , 504347 , 580197 , 430818 , 523757 , 432359 , 428987 , 430979 , 414973 , 597028 , 460479 , 469073 , 24724 , 483451 , 428769 , 456638 , 426075 , 471839 , 456880 , 457720 , 491155 , 575197 , 409599 , 423372 , 479528 , 446630 , 458098 , 517389 , 485325 , 398049 , 426461 , 481464 , 463762 , 468586 , 397129 , 416606 , 429541 , 462994 , 419420 , 473109 , 483375 , 445661 , 564777 , 402835 , 469580 , 447549 , 431341 , 671128 , 396742 , 483626 , 570304 , 663537 );
Copy
4
2.17 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
24724
384423
388628
396742
397129
398049
400137
402835
407925
408539
409008
409391
409599
414973
416606
419420
423372
426075
426461
427879
428769
428987
429368
429541
430818
430979
431341
432359
445661
446630
447549
455327
456638
456880
457720
458098
459649
460479
462994
463762
468586
469073
469580
471839
473109
479528
479800
481464
483375
483451
483626
485325
491155
504347
517389
523757
564777
570304
575197
580197
597028
663537
671128
]
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 (24724 , 384423 , 388628 , 396742 , 397129 , 398049 , 400137 , 402835 , 407925 , 408539 , 409008 , 409391 , 409599 , 414973 , 416606 , 419420 , 423372 , 426075 , 426461 , 427879 , 428769 , 428987 , 429368 , 429541 , 430818 , 430979 , 431341 , 432359 , 445661 , 446630 , 447549 , 455327 , 456638 , 456880 , 457720 , 458098 , 459649 , 460479 , 462994 , 463762 , 468586 , 469073 , 469580 , 471839 , 473109 , 479528 , 479800 , 481464 , 483375 , 483451 , 483626 , 485325 , 491155 , 504347 , 517389 , 523757 , 564777 , 570304 , 575197 , 580197 , 597028 , 663537 , 671128 );
Copy
5
65.65 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
24724
384423
388628
396742
397129
398049
400137
402835
407925
408539
409008
409391
409599
414973
416606
419420
423372
426075
426461
427879
428769
428987
429368
429541
430818
430979
431341
432359
445661
446630
447549
455327
456638
456880
457720
458098
459649
460479
462994
463762
468586
469073
469580
471839
473109
479528
479800
481464
483375
483451
483626
485325
491155
504347
517389
523757
564777
570304
575197
580197
597028
663537
671128
]
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 (24724 , 384423 , 388628 , 396742 , 397129 , 398049 , 400137 , 402835 , 407925 , 408539 , 409008 , 409391 , 409599 , 414973 , 416606 , 419420 , 423372 , 426075 , 426461 , 427879 , 428769 , 428987 , 429368 , 429541 , 430818 , 430979 , 431341 , 432359 , 445661 , 446630 , 447549 , 455327 , 456638 , 456880 , 457720 , 458098 , 459649 , 460479 , 462994 , 463762 , 468586 , 469073 , 469580 , 471839 , 473109 , 479528 , 479800 , 481464 , 483375 , 483451 , 483626 , 485325 , 491155 , 504347 , 517389 , 523757 , 564777 , 570304 , 575197 , 580197 , 597028 , 663537 , 671128 );
Copy