3
15.52 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
669277
553188
681867
766900
817466
826744
736785
416925
12904
452062
415544
500331
727794
782594
728924
451090
512962
557861
566409
521172
465392
692421
462599
397904
805638
472298
504279
406105
485317
526874
426478
553601
470184
649202
443532
426611
405709
670750
526877
455943
446024
426481
548756
644569
454752
415575
501892
486236
552480
548749
475488
476428
748227
782516
481772
475237
429933
601529
524613
530935
470442
448333
464266
462415
]
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 (669277 , 553188 , 681867 , 766900 , 817466 , 826744 , 736785 , 416925 , 12904 , 452062 , 415544 , 500331 , 727794 , 782594 , 728924 , 451090 , 512962 , 557861 , 566409 , 521172 , 465392 , 692421 , 462599 , 397904 , 805638 , 472298 , 504279 , 406105 , 485317 , 526874 , 426478 , 553601 , 470184 , 649202 , 443532 , 426611 , 405709 , 670750 , 526877 , 455943 , 446024 , 426481 , 548756 , 644569 , 454752 , 415575 , 501892 , 486236 , 552480 , 548749 , 475488 , 476428 , 748227 , 782516 , 481772 , 475237 , 429933 , 601529 , 524613 , 530935 , 470442 , 448333 , 464266 , 462415 );
Copy
4
1.82 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
12904
397904
405709
406105
415544
415575
416925
426478
426481
426611
429933
443532
446024
448333
451090
452062
454752
455943
462415
462599
464266
465392
470184
470442
472298
475237
475488
476428
481772
485317
486236
500331
501892
504279
512962
521172
524613
526874
526877
530935
548749
548756
552480
553188
553601
557861
566409
601529
644569
649202
669277
670750
681867
692421
727794
728924
736785
748227
766900
782516
782594
805638
817466
826744
]
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 (12904 , 397904 , 405709 , 406105 , 415544 , 415575 , 416925 , 426478 , 426481 , 426611 , 429933 , 443532 , 446024 , 448333 , 451090 , 452062 , 454752 , 455943 , 462415 , 462599 , 464266 , 465392 , 470184 , 470442 , 472298 , 475237 , 475488 , 476428 , 481772 , 485317 , 486236 , 500331 , 501892 , 504279 , 512962 , 521172 , 524613 , 526874 , 526877 , 530935 , 548749 , 548756 , 552480 , 553188 , 553601 , 557861 , 566409 , 601529 , 644569 , 649202 , 669277 , 670750 , 681867 , 692421 , 727794 , 728924 , 736785 , 748227 , 766900 , 782516 , 782594 , 805638 , 817466 , 826744 );
Copy
5
127.16 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
12904
397904
405709
406105
415544
415575
416925
426478
426481
426611
429933
443532
446024
448333
451090
452062
454752
455943
462415
462599
464266
465392
470184
470442
472298
475237
475488
476428
481772
485317
486236
500331
501892
504279
512962
521172
524613
526874
526877
530935
548749
548756
552480
553188
553601
557861
566409
601529
644569
649202
669277
670750
681867
692421
727794
728924
736785
748227
766900
782516
782594
805638
817466
826744
]
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 (12904 , 397904 , 405709 , 406105 , 415544 , 415575 , 416925 , 426478 , 426481 , 426611 , 429933 , 443532 , 446024 , 448333 , 451090 , 452062 , 454752 , 455943 , 462415 , 462599 , 464266 , 465392 , 470184 , 470442 , 472298 , 475237 , 475488 , 476428 , 481772 , 485317 , 486236 , 500331 , 501892 , 504279 , 512962 , 521172 , 524613 , 526874 , 526877 , 530935 , 548749 , 548756 , 552480 , 553188 , 553601 , 557861 , 566409 , 601529 , 644569 , 649202 , 669277 , 670750 , 681867 , 692421 , 727794 , 728924 , 736785 , 748227 , 766900 , 782516 , 782594 , 805638 , 817466 , 826744 );
Copy