3
11.41 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
721426
782721
809645
477925
570333
737564
254478
572378
729841
608319
762941
733059
566866
654419
809307
757348
382545
499494
735462
384960
510633
485602
571044
382381
568687
757938
569982
497535
559795
521988
686285
511516
500658
506379
800556
470067
505152
451498
575506
458769
500647
479141
565722
561834
547729
547913
453638
504220
560652
465404
491355
439568
490885
467214
479143
517206
565324
569330
486915
509672
465581
810109
448409
611645
617097
560651
]
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 (721426 , 782721 , 809645 , 477925 , 570333 , 737564 , 254478 , 572378 , 729841 , 608319 , 762941 , 733059 , 566866 , 654419 , 809307 , 757348 , 382545 , 499494 , 735462 , 384960 , 510633 , 485602 , 571044 , 382381 , 568687 , 757938 , 569982 , 497535 , 559795 , 521988 , 686285 , 511516 , 500658 , 506379 , 800556 , 470067 , 505152 , 451498 , 575506 , 458769 , 500647 , 479141 , 565722 , 561834 , 547729 , 547913 , 453638 , 504220 , 560652 , 465404 , 491355 , 439568 , 490885 , 467214 , 479143 , 517206 , 565324 , 569330 , 486915 , 509672 , 465581 , 810109 , 448409 , 611645 , 617097 , 560651 );
Copy
4
3.76 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
254478
382381
382545
384960
439568
448409
451498
453638
458769
465404
465581
467214
470067
477925
479141
479143
485602
486915
490885
491355
497535
499494
500647
500658
504220
505152
506379
509672
510633
511516
517206
521988
547729
547913
559795
560651
560652
561834
565324
565722
566866
568687
569330
569982
570333
571044
572378
575506
608319
611645
617097
654419
686285
721426
729841
733059
735462
737564
757348
757938
762941
782721
800556
809307
809645
810109
]
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 (254478 , 382381 , 382545 , 384960 , 439568 , 448409 , 451498 , 453638 , 458769 , 465404 , 465581 , 467214 , 470067 , 477925 , 479141 , 479143 , 485602 , 486915 , 490885 , 491355 , 497535 , 499494 , 500647 , 500658 , 504220 , 505152 , 506379 , 509672 , 510633 , 511516 , 517206 , 521988 , 547729 , 547913 , 559795 , 560651 , 560652 , 561834 , 565324 , 565722 , 566866 , 568687 , 569330 , 569982 , 570333 , 571044 , 572378 , 575506 , 608319 , 611645 , 617097 , 654419 , 686285 , 721426 , 729841 , 733059 , 735462 , 737564 , 757348 , 757938 , 762941 , 782721 , 800556 , 809307 , 809645 , 810109 );
Copy
5
113.56 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
254478
382381
382545
384960
439568
448409
451498
453638
458769
465404
465581
467214
470067
477925
479141
479143
485602
486915
490885
491355
497535
499494
500647
500658
504220
505152
506379
509672
510633
511516
517206
521988
547729
547913
559795
560651
560652
561834
565324
565722
566866
568687
569330
569982
570333
571044
572378
575506
608319
611645
617097
654419
686285
721426
729841
733059
735462
737564
757348
757938
762941
782721
800556
809307
809645
810109
]
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 (254478 , 382381 , 382545 , 384960 , 439568 , 448409 , 451498 , 453638 , 458769 , 465404 , 465581 , 467214 , 470067 , 477925 , 479141 , 479143 , 485602 , 486915 , 490885 , 491355 , 497535 , 499494 , 500647 , 500658 , 504220 , 505152 , 506379 , 509672 , 510633 , 511516 , 517206 , 521988 , 547729 , 547913 , 559795 , 560651 , 560652 , 561834 , 565324 , 565722 , 566866 , 568687 , 569330 , 569982 , 570333 , 571044 , 572378 , 575506 , 608319 , 611645 , 617097 , 654419 , 686285 , 721426 , 729841 , 733059 , 735462 , 737564 , 757348 , 757938 , 762941 , 782721 , 800556 , 809307 , 809645 , 810109 );
Copy