3
14.75 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
791824
197
677569
467667
458789
616491
688512
627012
773886
825602
556269
567978
736419
695915
572270
627577
806263
788701
576774
656874
681710
574211
779216
789901
700209
656579
591824
767269
592304
585588
787851
793663
710736
402800
681712
692998
615451
617512
782376
784828
387883
419269
468398
507875
545568
560411
656497
626746
594531
407157
441280
445867
669275
586664
643851
592544
765733
444912
463753
472156
532500
591441
448282
517749
437133
441448
500463
535091
527463
518608
439850
591368
546741
441039
560197
]
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 (791824 , 197 , 677569 , 467667 , 458789 , 616491 , 688512 , 627012 , 773886 , 825602 , 556269 , 567978 , 736419 , 695915 , 572270 , 627577 , 806263 , 788701 , 576774 , 656874 , 681710 , 574211 , 779216 , 789901 , 700209 , 656579 , 591824 , 767269 , 592304 , 585588 , 787851 , 793663 , 710736 , 402800 , 681712 , 692998 , 615451 , 617512 , 782376 , 784828 , 387883 , 419269 , 468398 , 507875 , 545568 , 560411 , 656497 , 626746 , 594531 , 407157 , 441280 , 445867 , 669275 , 586664 , 643851 , 592544 , 765733 , 444912 , 463753 , 472156 , 532500 , 591441 , 448282 , 517749 , 437133 , 441448 , 500463 , 535091 , 527463 , 518608 , 439850 , 591368 , 546741 , 441039 , 560197 );
Copy
4
3.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
197
387883
402800
407157
419269
437133
439850
441039
441280
441448
444912
445867
448282
458789
463753
467667
468398
472156
500463
507875
517749
518608
527463
532500
535091
545568
546741
556269
560197
560411
567978
572270
574211
576774
585588
586664
591368
591441
591824
592304
592544
594531
615451
616491
617512
626746
627012
627577
643851
656497
656579
656874
669275
677569
681710
681712
688512
692998
695915
700209
710736
736419
765733
767269
773886
779216
782376
787851
788701
789901
791824
793663
806263
825602
]
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 (197 , 387883 , 402800 , 407157 , 419269 , 437133 , 439850 , 441039 , 441280 , 441448 , 444912 , 445867 , 448282 , 458789 , 463753 , 467667 , 468398 , 472156 , 500463 , 507875 , 517749 , 518608 , 527463 , 532500 , 535091 , 545568 , 546741 , 556269 , 560197 , 560411 , 567978 , 572270 , 574211 , 576774 , 585588 , 586664 , 591368 , 591441 , 591824 , 592304 , 592544 , 594531 , 615451 , 616491 , 617512 , 626746 , 627012 , 627577 , 643851 , 656497 , 656579 , 656874 , 669275 , 677569 , 681710 , 681712 , 688512 , 692998 , 695915 , 700209 , 710736 , 736419 , 765733 , 767269 , 773886 , 779216 , 782376 , 787851 , 788701 , 789901 , 791824 , 793663 , 806263 , 825602 );
Copy
5
83.67 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
197
387883
402800
407157
419269
437133
439850
441039
441280
441448
444912
445867
448282
458789
463753
467667
468398
472156
500463
507875
517749
518608
527463
532500
535091
545568
546741
556269
560197
560411
567978
572270
574211
576774
585588
586664
591368
591441
591824
592304
592544
594531
615451
616491
617512
626746
627012
627577
643851
656497
656579
656874
669275
677569
681710
681712
688512
692998
695915
700209
710736
736419
765733
767269
773886
779216
782376
787851
788701
789901
791824
793663
806263
825602
]
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 (197 , 387883 , 402800 , 407157 , 419269 , 437133 , 439850 , 441039 , 441280 , 441448 , 444912 , 445867 , 448282 , 458789 , 463753 , 467667 , 468398 , 472156 , 500463 , 507875 , 517749 , 518608 , 527463 , 532500 , 535091 , 545568 , 546741 , 556269 , 560197 , 560411 , 567978 , 572270 , 574211 , 576774 , 585588 , 586664 , 591368 , 591441 , 591824 , 592304 , 592544 , 594531 , 615451 , 616491 , 617512 , 626746 , 627012 , 627577 , 643851 , 656497 , 656579 , 656874 , 669275 , 677569 , 681710 , 681712 , 688512 , 692998 , 695915 , 700209 , 710736 , 736419 , 765733 , 767269 , 773886 , 779216 , 782376 , 787851 , 788701 , 789901 , 791824 , 793663 , 806263 , 825602 );
Copy