3
12.79 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
787214
456405
506182
525470
556202
442015
470119
499389
460192
798631
601721
783959
790877
496962
535029
580657
592230
755406
452380
534788
534275
575725
543173
645479
610626
614694
797551
427150
437173
518822
429250
441874
818088
582298
674378
569555
601243
790807
613395
631961
526801
503064
519785
564864
450380
457291
520170
538021
394698
546755
509727
527679
559103
424199
420336
516397
407292
469681
495252
454994
434642
558693
511925
644150
425336
570725
556009
619999
424315
623727
]
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 (787214 , 456405 , 506182 , 525470 , 556202 , 442015 , 470119 , 499389 , 460192 , 798631 , 601721 , 783959 , 790877 , 496962 , 535029 , 580657 , 592230 , 755406 , 452380 , 534788 , 534275 , 575725 , 543173 , 645479 , 610626 , 614694 , 797551 , 427150 , 437173 , 518822 , 429250 , 441874 , 818088 , 582298 , 674378 , 569555 , 601243 , 790807 , 613395 , 631961 , 526801 , 503064 , 519785 , 564864 , 450380 , 457291 , 520170 , 538021 , 394698 , 546755 , 509727 , 527679 , 559103 , 424199 , 420336 , 516397 , 407292 , 469681 , 495252 , 454994 , 434642 , 558693 , 511925 , 644150 , 425336 , 570725 , 556009 , 619999 , 424315 , 623727 );
Copy
4
2.49 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
394698
407292
420336
424199
424315
425336
427150
429250
434642
437173
441874
442015
450380
452380
454994
456405
457291
460192
469681
470119
495252
496962
499389
503064
506182
509727
511925
516397
518822
519785
520170
525470
526801
527679
534275
534788
535029
538021
543173
546755
556009
556202
558693
559103
564864
569555
570725
575725
580657
582298
592230
601243
601721
610626
613395
614694
619999
623727
631961
644150
645479
674378
755406
783959
787214
790807
790877
797551
798631
818088
]
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 (394698 , 407292 , 420336 , 424199 , 424315 , 425336 , 427150 , 429250 , 434642 , 437173 , 441874 , 442015 , 450380 , 452380 , 454994 , 456405 , 457291 , 460192 , 469681 , 470119 , 495252 , 496962 , 499389 , 503064 , 506182 , 509727 , 511925 , 516397 , 518822 , 519785 , 520170 , 525470 , 526801 , 527679 , 534275 , 534788 , 535029 , 538021 , 543173 , 546755 , 556009 , 556202 , 558693 , 559103 , 564864 , 569555 , 570725 , 575725 , 580657 , 582298 , 592230 , 601243 , 601721 , 610626 , 613395 , 614694 , 619999 , 623727 , 631961 , 644150 , 645479 , 674378 , 755406 , 783959 , 787214 , 790807 , 790877 , 797551 , 798631 , 818088 );
Copy
5
94.32 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
394698
407292
420336
424199
424315
425336
427150
429250
434642
437173
441874
442015
450380
452380
454994
456405
457291
460192
469681
470119
495252
496962
499389
503064
506182
509727
511925
516397
518822
519785
520170
525470
526801
527679
534275
534788
535029
538021
543173
546755
556009
556202
558693
559103
564864
569555
570725
575725
580657
582298
592230
601243
601721
610626
613395
614694
619999
623727
631961
644150
645479
674378
755406
783959
787214
790807
790877
797551
798631
818088
]
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 (394698 , 407292 , 420336 , 424199 , 424315 , 425336 , 427150 , 429250 , 434642 , 437173 , 441874 , 442015 , 450380 , 452380 , 454994 , 456405 , 457291 , 460192 , 469681 , 470119 , 495252 , 496962 , 499389 , 503064 , 506182 , 509727 , 511925 , 516397 , 518822 , 519785 , 520170 , 525470 , 526801 , 527679 , 534275 , 534788 , 535029 , 538021 , 543173 , 546755 , 556009 , 556202 , 558693 , 559103 , 564864 , 569555 , 570725 , 575725 , 580657 , 582298 , 592230 , 601243 , 601721 , 610626 , 613395 , 614694 , 619999 , 623727 , 631961 , 644150 , 645479 , 674378 , 755406 , 783959 , 787214 , 790807 , 790877 , 797551 , 798631 , 818088 );
Copy