3
15.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
551
388631
403576
382861
408705
750511
386467
383485
388005
400884
390278
390650
457567
468508
474475
490592
467046
427185
453169
476836
469464
529293
419091
442236
454516
471060
397997
467024
468504
500690
427011
471026
525355
463781
456788
387052
486247
468015
519753
427100
434106
401071
434102
483907
571708
517428
442307
412688
446302
480701
472313
405829
401585
508580
599962
491102
659182
492401
603388
461954
452256
456684
402987
599463
429723
520138
]
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 (551 , 388631 , 403576 , 382861 , 408705 , 750511 , 386467 , 383485 , 388005 , 400884 , 390278 , 390650 , 457567 , 468508 , 474475 , 490592 , 467046 , 427185 , 453169 , 476836 , 469464 , 529293 , 419091 , 442236 , 454516 , 471060 , 397997 , 467024 , 468504 , 500690 , 427011 , 471026 , 525355 , 463781 , 456788 , 387052 , 486247 , 468015 , 519753 , 427100 , 434106 , 401071 , 434102 , 483907 , 571708 , 517428 , 442307 , 412688 , 446302 , 480701 , 472313 , 405829 , 401585 , 508580 , 599962 , 491102 , 659182 , 492401 , 603388 , 461954 , 452256 , 456684 , 402987 , 599463 , 429723 , 520138 );
Copy
4
2.70 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
551
382861
383485
386467
387052
388005
388631
390278
390650
397997
400884
401071
401585
402987
403576
405829
408705
412688
419091
427011
427100
427185
429723
434102
434106
442236
442307
446302
452256
453169
454516
456684
456788
457567
461954
463781
467024
467046
468015
468504
468508
469464
471026
471060
472313
474475
476836
480701
483907
486247
490592
491102
492401
500690
508580
517428
519753
520138
525355
529293
571708
599463
599962
603388
659182
750511
]
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 (551 , 382861 , 383485 , 386467 , 387052 , 388005 , 388631 , 390278 , 390650 , 397997 , 400884 , 401071 , 401585 , 402987 , 403576 , 405829 , 408705 , 412688 , 419091 , 427011 , 427100 , 427185 , 429723 , 434102 , 434106 , 442236 , 442307 , 446302 , 452256 , 453169 , 454516 , 456684 , 456788 , 457567 , 461954 , 463781 , 467024 , 467046 , 468015 , 468504 , 468508 , 469464 , 471026 , 471060 , 472313 , 474475 , 476836 , 480701 , 483907 , 486247 , 490592 , 491102 , 492401 , 500690 , 508580 , 517428 , 519753 , 520138 , 525355 , 529293 , 571708 , 599463 , 599962 , 603388 , 659182 , 750511 );
Copy
5
82.86 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
551
382861
383485
386467
387052
388005
388631
390278
390650
397997
400884
401071
401585
402987
403576
405829
408705
412688
419091
427011
427100
427185
429723
434102
434106
442236
442307
446302
452256
453169
454516
456684
456788
457567
461954
463781
467024
467046
468015
468504
468508
469464
471026
471060
472313
474475
476836
480701
483907
486247
490592
491102
492401
500690
508580
517428
519753
520138
525355
529293
571708
599463
599962
603388
659182
750511
]
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 (551 , 382861 , 383485 , 386467 , 387052 , 388005 , 388631 , 390278 , 390650 , 397997 , 400884 , 401071 , 401585 , 402987 , 403576 , 405829 , 408705 , 412688 , 419091 , 427011 , 427100 , 427185 , 429723 , 434102 , 434106 , 442236 , 442307 , 446302 , 452256 , 453169 , 454516 , 456684 , 456788 , 457567 , 461954 , 463781 , 467024 , 467046 , 468015 , 468504 , 468508 , 469464 , 471026 , 471060 , 472313 , 474475 , 476836 , 480701 , 483907 , 486247 , 490592 , 491102 , 492401 , 500690 , 508580 , 517428 , 519753 , 520138 , 525355 , 529293 , 571708 , 599463 , 599962 , 603388 , 659182 , 750511 );
Copy