104.07 ms (28.49%)
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
4073
7390
410255
410285
414865
420527
422469
422546
422592
422671
423040
427591
430469
443503
454954
455851
456546
458100
465444
469503
469644
472859
473838
474956
479942
482493
490278
491250
492109
492576
493571
496882
508276
512948
513664
515833
516035
522540
527497
527514
528947
528966
529015
537393
543361
545152
545831
551172
562271
566729
569012
574887
592408
617026
643728
659033
693496
697427
731994
745081
755662
758028
818992
821044
]
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 (4073 , 7390 , 410255 , 410285 , 414865 , 420527 , 422469 , 422546 , 422592 , 422671 , 423040 , 427591 , 430469 , 443503 , 454954 , 455851 , 456546 , 458100 , 465444 , 469503 , 469644 , 472859 , 473838 , 474956 , 479942 , 482493 , 490278 , 491250 , 492109 , 492576 , 493571 , 496882 , 508276 , 512948 , 513664 , 515833 , 516035 , 522540 , 527497 , 527514 , 528947 , 528966 , 529015 , 537393 , 543361 , 545152 , 545831 , 551172 , 562271 , 566729 , 569012 , 574887 , 592408 , 617026 , 643728 , 659033 , 693496 , 697427 , 731994 , 745081 , 755662 , 758028 , 818992 , 821044 );
Copy
10.70 ms (2.93%)
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
745081
755662
545152
7390
469503
529015
527514
422469
697427
731994
569012
479942
537393
465444
693496
482493
818992
528947
528966
516035
659033
758028
410285
496882
469644
512948
821044
420527
493571
527497
551172
522540
472859
543361
474956
508276
617026
410255
490278
643728
592408
492109
427591
473838
456546
422671
430469
422546
566729
455851
545831
515833
422592
423040
443503
4073
458100
574887
491250
492576
513664
562271
414865
454954
]
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 (745081 , 755662 , 545152 , 7390 , 469503 , 529015 , 527514 , 422469 , 697427 , 731994 , 569012 , 479942 , 537393 , 465444 , 693496 , 482493 , 818992 , 528947 , 528966 , 516035 , 659033 , 758028 , 410285 , 496882 , 469644 , 512948 , 821044 , 420527 , 493571 , 527497 , 551172 , 522540 , 472859 , 543361 , 474956 , 508276 , 617026 , 410255 , 490278 , 643728 , 592408 , 492109 , 427591 , 473838 , 456546 , 422671 , 430469 , 422546 , 566729 , 455851 , 545831 , 515833 , 422592 , 423040 , 443503 , 4073 , 458100 , 574887 , 491250 , 492576 , 513664 , 562271 , 414865 , 454954 );
Copy
2.42 ms (0.66%)
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
4073
7390
410255
410285
414865
420527
422469
422546
422592
422671
423040
427591
430469
443503
454954
455851
456546
458100
465444
469503
469644
472859
473838
474956
479942
482493
490278
491250
492109
492576
493571
496882
508276
512948
513664
515833
516035
522540
527497
527514
528947
528966
529015
537393
543361
545152
545831
551172
562271
566729
569012
574887
592408
617026
643728
659033
693496
697427
731994
745081
755662
758028
818992
821044
]
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 (4073 , 7390 , 410255 , 410285 , 414865 , 420527 , 422469 , 422546 , 422592 , 422671 , 423040 , 427591 , 430469 , 443503 , 454954 , 455851 , 456546 , 458100 , 465444 , 469503 , 469644 , 472859 , 473838 , 474956 , 479942 , 482493 , 490278 , 491250 , 492109 , 492576 , 493571 , 496882 , 508276 , 512948 , 513664 , 515833 , 516035 , 522540 , 527497 , 527514 , 528947 , 528966 , 529015 , 537393 , 543361 , 545152 , 545831 , 551172 , 562271 , 566729 , 569012 , 574887 , 592408 , 617026 , 643728 , 659033 , 693496 , 697427 , 731994 , 745081 , 755662 , 758028 , 818992 , 821044 );
Copy