3
10.32 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
697331
789494
806995
648209
824265
697688
409113
445599
464410
561124
596844
706935
572621
604691
773620
796543
803941
8207
477556
477548
458929
561030
660070
692796
802150
544498
715368
708422
818426
472939
497007
619470
405020
454108
472835
512868
584004
486275
523442
413597
553786
620162
607709
464381
388059
527513
395676
469357
453826
458924
527750
572653
544490
560155
445603
449435
541604
619483
476220
485100
424329
420222
522556
560924
]
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 (697331 , 789494 , 806995 , 648209 , 824265 , 697688 , 409113 , 445599 , 464410 , 561124 , 596844 , 706935 , 572621 , 604691 , 773620 , 796543 , 803941 , 8207 , 477556 , 477548 , 458929 , 561030 , 660070 , 692796 , 802150 , 544498 , 715368 , 708422 , 818426 , 472939 , 497007 , 619470 , 405020 , 454108 , 472835 , 512868 , 584004 , 486275 , 523442 , 413597 , 553786 , 620162 , 607709 , 464381 , 388059 , 527513 , 395676 , 469357 , 453826 , 458924 , 527750 , 572653 , 544490 , 560155 , 445603 , 449435 , 541604 , 619483 , 476220 , 485100 , 424329 , 420222 , 522556 , 560924 );
Copy
4
2.98 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
8207
388059
395676
405020
409113
413597
420222
424329
445599
445603
449435
453826
454108
458924
458929
464381
464410
469357
472835
472939
476220
477548
477556
485100
486275
497007
512868
522556
523442
527513
527750
541604
544490
544498
553786
560155
560924
561030
561124
572621
572653
584004
596844
604691
607709
619470
619483
620162
648209
660070
692796
697331
697688
706935
708422
715368
773620
789494
796543
802150
803941
806995
818426
824265
]
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 (8207 , 388059 , 395676 , 405020 , 409113 , 413597 , 420222 , 424329 , 445599 , 445603 , 449435 , 453826 , 454108 , 458924 , 458929 , 464381 , 464410 , 469357 , 472835 , 472939 , 476220 , 477548 , 477556 , 485100 , 486275 , 497007 , 512868 , 522556 , 523442 , 527513 , 527750 , 541604 , 544490 , 544498 , 553786 , 560155 , 560924 , 561030 , 561124 , 572621 , 572653 , 584004 , 596844 , 604691 , 607709 , 619470 , 619483 , 620162 , 648209 , 660070 , 692796 , 697331 , 697688 , 706935 , 708422 , 715368 , 773620 , 789494 , 796543 , 802150 , 803941 , 806995 , 818426 , 824265 );
Copy
5
99.39 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
8207
388059
395676
405020
409113
413597
420222
424329
445599
445603
449435
453826
454108
458924
458929
464381
464410
469357
472835
472939
476220
477548
477556
485100
486275
497007
512868
522556
523442
527513
527750
541604
544490
544498
553786
560155
560924
561030
561124
572621
572653
584004
596844
604691
607709
619470
619483
620162
648209
660070
692796
697331
697688
706935
708422
715368
773620
789494
796543
802150
803941
806995
818426
824265
]
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 (8207 , 388059 , 395676 , 405020 , 409113 , 413597 , 420222 , 424329 , 445599 , 445603 , 449435 , 453826 , 454108 , 458924 , 458929 , 464381 , 464410 , 469357 , 472835 , 472939 , 476220 , 477548 , 477556 , 485100 , 486275 , 497007 , 512868 , 522556 , 523442 , 527513 , 527750 , 541604 , 544490 , 544498 , 553786 , 560155 , 560924 , 561030 , 561124 , 572621 , 572653 , 584004 , 596844 , 604691 , 607709 , 619470 , 619483 , 620162 , 648209 , 660070 , 692796 , 697331 , 697688 , 706935 , 708422 , 715368 , 773620 , 789494 , 796543 , 802150 , 803941 , 806995 , 818426 , 824265 );
Copy