4
16.80 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
602945
497953
428103
434192
477210
532680
533563
539203
537210
537212
540437
518473
524628
540511
531123
532661
532745
567909
650380
713176
650155
623380
639258
605450
639732
406381
445471
472161
474663
506047
518468
522345
545480
665328
596839
541611
532755
533746
534645
512059
530637
513951
532672
540330
517743
646448
563546
597216
642774
521001
506269
541866
429425
532666
533915
647893
632563
599988
468666
478672
516686
520759
533557
521575
]
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 (602945 , 497953 , 428103 , 434192 , 477210 , 532680 , 533563 , 539203 , 537210 , 537212 , 540437 , 518473 , 524628 , 540511 , 531123 , 532661 , 532745 , 567909 , 650380 , 713176 , 650155 , 623380 , 639258 , 605450 , 639732 , 406381 , 445471 , 472161 , 474663 , 506047 , 518468 , 522345 , 545480 , 665328 , 596839 , 541611 , 532755 , 533746 , 534645 , 512059 , 530637 , 513951 , 532672 , 540330 , 517743 , 646448 , 563546 , 597216 , 642774 , 521001 , 506269 , 541866 , 429425 , 532666 , 533915 , 647893 , 632563 , 599988 , 468666 , 478672 , 516686 , 520759 , 533557 , 521575 );
Copy
5
2.42 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
406381
428103
429425
434192
445471
468666
472161
474663
477210
478672
497953
506047
506269
512059
513951
516686
517743
518468
518473
520759
521001
521575
522345
524628
530637
531123
532661
532666
532672
532680
532745
532755
533557
533563
533746
533915
534645
537210
537212
539203
540330
540437
540511
541611
541866
545480
563546
567909
596839
597216
599988
602945
605450
623380
632563
639258
639732
642774
646448
647893
650155
650380
665328
713176
]
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 (406381 , 428103 , 429425 , 434192 , 445471 , 468666 , 472161 , 474663 , 477210 , 478672 , 497953 , 506047 , 506269 , 512059 , 513951 , 516686 , 517743 , 518468 , 518473 , 520759 , 521001 , 521575 , 522345 , 524628 , 530637 , 531123 , 532661 , 532666 , 532672 , 532680 , 532745 , 532755 , 533557 , 533563 , 533746 , 533915 , 534645 , 537210 , 537212 , 539203 , 540330 , 540437 , 540511 , 541611 , 541866 , 545480 , 563546 , 567909 , 596839 , 597216 , 599988 , 602945 , 605450 , 623380 , 632563 , 639258 , 639732 , 642774 , 646448 , 647893 , 650155 , 650380 , 665328 , 713176 );
Copy
6
102.23 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
406381
428103
429425
434192
445471
468666
472161
474663
477210
478672
497953
506047
506269
512059
513951
516686
517743
518468
518473
520759
521001
521575
522345
524628
530637
531123
532661
532666
532672
532680
532745
532755
533557
533563
533746
533915
534645
537210
537212
539203
540330
540437
540511
541611
541866
545480
563546
567909
596839
597216
599988
602945
605450
623380
632563
639258
639732
642774
646448
647893
650155
650380
665328
713176
]
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 (406381 , 428103 , 429425 , 434192 , 445471 , 468666 , 472161 , 474663 , 477210 , 478672 , 497953 , 506047 , 506269 , 512059 , 513951 , 516686 , 517743 , 518468 , 518473 , 520759 , 521001 , 521575 , 522345 , 524628 , 530637 , 531123 , 532661 , 532666 , 532672 , 532680 , 532745 , 532755 , 533557 , 533563 , 533746 , 533915 , 534645 , 537210 , 537212 , 539203 , 540330 , 540437 , 540511 , 541611 , 541866 , 545480 , 563546 , 567909 , 596839 , 597216 , 599988 , 602945 , 605450 , 623380 , 632563 , 639258 , 639732 , 642774 , 646448 , 647893 , 650155 , 650380 , 665328 , 713176 );
Copy