4
10.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
575789
548555
612067
634826
749991
759085
424531
470310
445764
6591
545681
574890
544050
552476
595813
784345
408292
471002
491704
520566
506156
415734
478653
552521
587309
511764
446731
546755
576023
562810
576380
555688
619823
476808
473608
522891
535009
485116
452060
502453
528768
500583
576418
595568
473580
473597
473609
470849
473586
473596
512620
526428
448813
446739
514240
528029
521782
430836
479820
473598
490063
500566
433319
521815
]
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 (575789 , 548555 , 612067 , 634826 , 749991 , 759085 , 424531 , 470310 , 445764 , 6591 , 545681 , 574890 , 544050 , 552476 , 595813 , 784345 , 408292 , 471002 , 491704 , 520566 , 506156 , 415734 , 478653 , 552521 , 587309 , 511764 , 446731 , 546755 , 576023 , 562810 , 576380 , 555688 , 619823 , 476808 , 473608 , 522891 , 535009 , 485116 , 452060 , 502453 , 528768 , 500583 , 576418 , 595568 , 473580 , 473597 , 473609 , 470849 , 473586 , 473596 , 512620 , 526428 , 448813 , 446739 , 514240 , 528029 , 521782 , 430836 , 479820 , 473598 , 490063 , 500566 , 433319 , 521815 );
Copy
5
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
6591
408292
415734
424531
430836
433319
445764
446731
446739
448813
452060
470310
470849
471002
473580
473586
473596
473597
473598
473608
473609
476808
478653
479820
485116
490063
491704
500566
500583
502453
506156
511764
512620
514240
520566
521782
521815
522891
526428
528029
528768
535009
544050
545681
546755
548555
552476
552521
555688
562810
574890
575789
576023
576380
576418
587309
595568
595813
612067
619823
634826
749991
759085
784345
]
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 (6591 , 408292 , 415734 , 424531 , 430836 , 433319 , 445764 , 446731 , 446739 , 448813 , 452060 , 470310 , 470849 , 471002 , 473580 , 473586 , 473596 , 473597 , 473598 , 473608 , 473609 , 476808 , 478653 , 479820 , 485116 , 490063 , 491704 , 500566 , 500583 , 502453 , 506156 , 511764 , 512620 , 514240 , 520566 , 521782 , 521815 , 522891 , 526428 , 528029 , 528768 , 535009 , 544050 , 545681 , 546755 , 548555 , 552476 , 552521 , 555688 , 562810 , 574890 , 575789 , 576023 , 576380 , 576418 , 587309 , 595568 , 595813 , 612067 , 619823 , 634826 , 749991 , 759085 , 784345 );
Copy
6
104.65 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
6591
408292
415734
424531
430836
433319
445764
446731
446739
448813
452060
470310
470849
471002
473580
473586
473596
473597
473598
473608
473609
476808
478653
479820
485116
490063
491704
500566
500583
502453
506156
511764
512620
514240
520566
521782
521815
522891
526428
528029
528768
535009
544050
545681
546755
548555
552476
552521
555688
562810
574890
575789
576023
576380
576418
587309
595568
595813
612067
619823
634826
749991
759085
784345
]
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 (6591 , 408292 , 415734 , 424531 , 430836 , 433319 , 445764 , 446731 , 446739 , 448813 , 452060 , 470310 , 470849 , 471002 , 473580 , 473586 , 473596 , 473597 , 473598 , 473608 , 473609 , 476808 , 478653 , 479820 , 485116 , 490063 , 491704 , 500566 , 500583 , 502453 , 506156 , 511764 , 512620 , 514240 , 520566 , 521782 , 521815 , 522891 , 526428 , 528029 , 528768 , 535009 , 544050 , 545681 , 546755 , 548555 , 552476 , 552521 , 555688 , 562810 , 574890 , 575789 , 576023 , 576380 , 576418 , 587309 , 595568 , 595813 , 612067 , 619823 , 634826 , 749991 , 759085 , 784345 );
Copy