3
10.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
726503
698728
720164
500462
613873
447995
471934
543552
553687
581669
417955
446095
480774
612178
428250
500530
783237
425744
489621
458783
481548
516438
574267
579166
591767
751498
512857
797110
429668
494999
605443
765752
459093
416360
500464
437783
416878
496429
467705
441110
569778
448498
552296
577925
506475
558958
464265
546465
522272
562066
559140
385296
523860
495064
714457
446054
457149
542754
613319
488030
478832
543849
513573
597963
651938
616787
653557
653560
518511
]
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 (726503 , 698728 , 720164 , 500462 , 613873 , 447995 , 471934 , 543552 , 553687 , 581669 , 417955 , 446095 , 480774 , 612178 , 428250 , 500530 , 783237 , 425744 , 489621 , 458783 , 481548 , 516438 , 574267 , 579166 , 591767 , 751498 , 512857 , 797110 , 429668 , 494999 , 605443 , 765752 , 459093 , 416360 , 500464 , 437783 , 416878 , 496429 , 467705 , 441110 , 569778 , 448498 , 552296 , 577925 , 506475 , 558958 , 464265 , 546465 , 522272 , 562066 , 559140 , 385296 , 523860 , 495064 , 714457 , 446054 , 457149 , 542754 , 613319 , 488030 , 478832 , 543849 , 513573 , 597963 , 651938 , 616787 , 653557 , 653560 , 518511 );
Copy
4
2.52 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
385296
416360
416878
417955
425744
428250
429668
437783
441110
446054
446095
447995
448498
457149
458783
459093
464265
467705
471934
478832
480774
481548
488030
489621
494999
495064
496429
500462
500464
500530
506475
512857
513573
516438
518511
522272
523860
542754
543552
543849
546465
552296
553687
558958
559140
562066
569778
574267
577925
579166
581669
591767
597963
605443
612178
613319
613873
616787
651938
653557
653560
698728
714457
720164
726503
751498
765752
783237
797110
]
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 (385296 , 416360 , 416878 , 417955 , 425744 , 428250 , 429668 , 437783 , 441110 , 446054 , 446095 , 447995 , 448498 , 457149 , 458783 , 459093 , 464265 , 467705 , 471934 , 478832 , 480774 , 481548 , 488030 , 489621 , 494999 , 495064 , 496429 , 500462 , 500464 , 500530 , 506475 , 512857 , 513573 , 516438 , 518511 , 522272 , 523860 , 542754 , 543552 , 543849 , 546465 , 552296 , 553687 , 558958 , 559140 , 562066 , 569778 , 574267 , 577925 , 579166 , 581669 , 591767 , 597963 , 605443 , 612178 , 613319 , 613873 , 616787 , 651938 , 653557 , 653560 , 698728 , 714457 , 720164 , 726503 , 751498 , 765752 , 783237 , 797110 );
Copy
5
108.02 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
385296
416360
416878
417955
425744
428250
429668
437783
441110
446054
446095
447995
448498
457149
458783
459093
464265
467705
471934
478832
480774
481548
488030
489621
494999
495064
496429
500462
500464
500530
506475
512857
513573
516438
518511
522272
523860
542754
543552
543849
546465
552296
553687
558958
559140
562066
569778
574267
577925
579166
581669
591767
597963
605443
612178
613319
613873
616787
651938
653557
653560
698728
714457
720164
726503
751498
765752
783237
797110
]
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 (385296 , 416360 , 416878 , 417955 , 425744 , 428250 , 429668 , 437783 , 441110 , 446054 , 446095 , 447995 , 448498 , 457149 , 458783 , 459093 , 464265 , 467705 , 471934 , 478832 , 480774 , 481548 , 488030 , 489621 , 494999 , 495064 , 496429 , 500462 , 500464 , 500530 , 506475 , 512857 , 513573 , 516438 , 518511 , 522272 , 523860 , 542754 , 543552 , 543849 , 546465 , 552296 , 553687 , 558958 , 559140 , 562066 , 569778 , 574267 , 577925 , 579166 , 581669 , 591767 , 597963 , 605443 , 612178 , 613319 , 613873 , 616787 , 651938 , 653557 , 653560 , 698728 , 714457 , 720164 , 726503 , 751498 , 765752 , 783237 , 797110 );
Copy