103.53 ms (57.48%)
1
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
418941
428881
479047
482088
482325
483406
486252
486537
487513
499487
502512
504422
506830
511598
516904
518868
518960
522930
529722
531523
536885
546425
548848
550225
555095
556025
556825
560197
563443
564378
565626
567151
568411
569421
571715
577390
579769
581341
583327
585395
585633
587215
588624
591126
592850
596153
596500
597874
598863
601111
622054
638952
649437
667353
676591
778172
807321
807369
807407
813548
813913
814515
]
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 (418941 , 428881 , 479047 , 482088 , 482325 , 483406 , 486252 , 486537 , 487513 , 499487 , 502512 , 504422 , 506830 , 511598 , 516904 , 518868 , 518960 , 522930 , 529722 , 531523 , 536885 , 546425 , 548848 , 550225 , 555095 , 556025 , 556825 , 560197 , 563443 , 564378 , 565626 , 567151 , 568411 , 569421 , 571715 , 577390 , 579769 , 581341 , 583327 , 585395 , 585633 , 587215 , 588624 , 591126 , 592850 , 596153 , 596500 , 597874 , 598863 , 601111 , 622054 , 638952 , 649437 , 667353 , 676591 , 778172 , 807321 , 807369 , 807407 , 813548 , 813913 , 814515 );
Copy
9.90 ms (5.49%)
1
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
778172
638952
583327
579769
556825
585633
587215
592850
622054
813548
568411
667353
596153
807321
807369
531523
807407
591126
511598
555095
601111
428881
585395
598863
814515
510295
529722
546425
563443
550225
813913
577390
565626
649437
499487
518868
486252
487513
482088
559076
564378
581341
483406
486537
676591
571715
548848
597874
588624
479047
482325
506830
502512
516904
536885
556025
418941
567151
522930
504422
518960
569421
596500
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 (778172 , 638952 , 583327 , 579769 , 556825 , 585633 , 587215 , 592850 , 622054 , 813548 , 568411 , 667353 , 596153 , 807321 , 807369 , 531523 , 807407 , 591126 , 511598 , 555095 , 601111 , 428881 , 585395 , 598863 , 814515 , 510295 , 529722 , 546425 , 563443 , 550225 , 813913 , 577390 , 565626 , 649437 , 499487 , 518868 , 486252 , 487513 , 482088 , 559076 , 564378 , 581341 , 483406 , 486537 , 676591 , 571715 , 548848 , 597874 , 588624 , 479047 , 482325 , 506830 , 502512 , 516904 , 536885 , 556025 , 418941 , 567151 , 522930 , 504422 , 518960 , 569421 , 596500 , 560197 );
Copy
2.55 ms (1.42%)
1
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
418941
428881
479047
482088
482325
483406
486252
486537
487513
499487
502512
504422
506830
511598
516904
518868
518960
522930
529722
531523
536885
546425
548848
550225
555095
556025
556825
560197
563443
564378
565626
567151
568411
569421
571715
577390
579769
581341
583327
585395
585633
587215
588624
591126
592850
596153
596500
597874
598863
601111
622054
638952
649437
667353
676591
778172
807321
807369
807407
813548
813913
814515
]
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 (418941 , 428881 , 479047 , 482088 , 482325 , 483406 , 486252 , 486537 , 487513 , 499487 , 502512 , 504422 , 506830 , 511598 , 516904 , 518868 , 518960 , 522930 , 529722 , 531523 , 536885 , 546425 , 548848 , 550225 , 555095 , 556025 , 556825 , 560197 , 563443 , 564378 , 565626 , 567151 , 568411 , 569421 , 571715 , 577390 , 579769 , 581341 , 583327 , 585395 , 585633 , 587215 , 588624 , 591126 , 592850 , 596153 , 596500 , 597874 , 598863 , 601111 , 622054 , 638952 , 649437 , 667353 , 676591 , 778172 , 807321 , 807369 , 807407 , 813548 , 813913 , 814515 );
Copy