3
10.21 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
490397
567022
750739
739556
741699
611469
626872
588071
522278
540911
555001
557380
602438
791516
479285
461696
527956
456742
605367
458820
471958
505317
482404
547751
547779
583355
547776
791505
418554
457597
465261
513615
599803
560409
527641
489207
516941
517810
485875
555988
556004
555020
547756
566100
598975
521201
555967
435922
626576
614681
440891
751589
805139
556001
624587
450550
484880
596235
439606
437960
439510
520130
516271
613928
573461
422398
584461
]
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 (490397 , 567022 , 750739 , 739556 , 741699 , 611469 , 626872 , 588071 , 522278 , 540911 , 555001 , 557380 , 602438 , 791516 , 479285 , 461696 , 527956 , 456742 , 605367 , 458820 , 471958 , 505317 , 482404 , 547751 , 547779 , 583355 , 547776 , 791505 , 418554 , 457597 , 465261 , 513615 , 599803 , 560409 , 527641 , 489207 , 516941 , 517810 , 485875 , 555988 , 556004 , 555020 , 547756 , 566100 , 598975 , 521201 , 555967 , 435922 , 626576 , 614681 , 440891 , 751589 , 805139 , 556001 , 624587 , 450550 , 484880 , 596235 , 439606 , 437960 , 439510 , 520130 , 516271 , 613928 , 573461 , 422398 , 584461 );
Copy
4
2.34 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
418554
422398
435922
437960
439510
439606
440891
450550
456742
457597
458820
461696
465261
471958
479285
482404
484880
485875
489207
490397
505317
513615
516271
516941
517810
520130
521201
522278
527641
527956
540911
547751
547756
547776
547779
555001
555020
555967
555988
556001
556004
557380
560409
566100
567022
573461
583355
584461
588071
596235
598975
599803
602438
605367
611469
613928
614681
624587
626576
626872
739556
741699
750739
751589
791505
791516
805139
]
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 (418554 , 422398 , 435922 , 437960 , 439510 , 439606 , 440891 , 450550 , 456742 , 457597 , 458820 , 461696 , 465261 , 471958 , 479285 , 482404 , 484880 , 485875 , 489207 , 490397 , 505317 , 513615 , 516271 , 516941 , 517810 , 520130 , 521201 , 522278 , 527641 , 527956 , 540911 , 547751 , 547756 , 547776 , 547779 , 555001 , 555020 , 555967 , 555988 , 556001 , 556004 , 557380 , 560409 , 566100 , 567022 , 573461 , 583355 , 584461 , 588071 , 596235 , 598975 , 599803 , 602438 , 605367 , 611469 , 613928 , 614681 , 624587 , 626576 , 626872 , 739556 , 741699 , 750739 , 751589 , 791505 , 791516 , 805139 );
Copy
5
115.47 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
418554
422398
435922
437960
439510
439606
440891
450550
456742
457597
458820
461696
465261
471958
479285
482404
484880
485875
489207
490397
505317
513615
516271
516941
517810
520130
521201
522278
527641
527956
540911
547751
547756
547776
547779
555001
555020
555967
555988
556001
556004
557380
560409
566100
567022
573461
583355
584461
588071
596235
598975
599803
602438
605367
611469
613928
614681
624587
626576
626872
739556
741699
750739
751589
791505
791516
805139
]
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 (418554 , 422398 , 435922 , 437960 , 439510 , 439606 , 440891 , 450550 , 456742 , 457597 , 458820 , 461696 , 465261 , 471958 , 479285 , 482404 , 484880 , 485875 , 489207 , 490397 , 505317 , 513615 , 516271 , 516941 , 517810 , 520130 , 521201 , 522278 , 527641 , 527956 , 540911 , 547751 , 547756 , 547776 , 547779 , 555001 , 555020 , 555967 , 555988 , 556001 , 556004 , 557380 , 560409 , 566100 , 567022 , 573461 , 583355 , 584461 , 588071 , 596235 , 598975 , 599803 , 602438 , 605367 , 611469 , 613928 , 614681 , 624587 , 626576 , 626872 , 739556 , 741699 , 750739 , 751589 , 791505 , 791516 , 805139 );
Copy