3
216.47 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
772581
642022
749271
583539
585296
712140
511375
741692
555035
687325
741246
812236
466035
576517
802282
658819
605737
464790
541277
547502
583206
656886
429879
290847
605219
392019
483731
514868
672950
752672
752609
762191
429902
475318
391926
480680
420129
605725
424765
492165
575601
634108
602793
392023
391945
525468
391911
448464
429890
414125
429880
429889
510425
604426
602092
389966
429899
429900
491436
622693
445409
605746
]
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 (772581 , 642022 , 749271 , 583539 , 585296 , 712140 , 511375 , 741692 , 555035 , 687325 , 741246 , 812236 , 466035 , 576517 , 802282 , 658819 , 605737 , 464790 , 541277 , 547502 , 583206 , 656886 , 429879 , 290847 , 605219 , 392019 , 483731 , 514868 , 672950 , 752672 , 752609 , 762191 , 429902 , 475318 , 391926 , 480680 , 420129 , 605725 , 424765 , 492165 , 575601 , 634108 , 602793 , 392023 , 391945 , 525468 , 391911 , 448464 , 429890 , 414125 , 429880 , 429889 , 510425 , 604426 , 602092 , 389966 , 429899 , 429900 , 491436 , 622693 , 445409 , 605746 );
Copy
4
3.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
290847
389966
391911
391926
391945
392019
392023
414125
420129
424765
429879
429880
429889
429890
429899
429900
429902
445409
448464
464790
466035
475318
480680
483731
491436
492165
510425
511375
514868
525468
541277
547502
555035
575601
576517
583206
583539
585296
602092
602793
604426
605219
605725
605737
605746
622693
634108
642022
656886
658819
672950
687325
712140
741246
741692
749271
752609
752672
762191
772581
802282
812236
]
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 (290847 , 389966 , 391911 , 391926 , 391945 , 392019 , 392023 , 414125 , 420129 , 424765 , 429879 , 429880 , 429889 , 429890 , 429899 , 429900 , 429902 , 445409 , 448464 , 464790 , 466035 , 475318 , 480680 , 483731 , 491436 , 492165 , 510425 , 511375 , 514868 , 525468 , 541277 , 547502 , 555035 , 575601 , 576517 , 583206 , 583539 , 585296 , 602092 , 602793 , 604426 , 605219 , 605725 , 605737 , 605746 , 622693 , 634108 , 642022 , 656886 , 658819 , 672950 , 687325 , 712140 , 741246 , 741692 , 749271 , 752609 , 752672 , 762191 , 772581 , 802282 , 812236 );
Copy
5
130.70 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
290847
389966
391911
391926
391945
392019
392023
414125
420129
424765
429879
429880
429889
429890
429899
429900
429902
445409
448464
464790
466035
475318
480680
483731
491436
492165
510425
511375
514868
525468
541277
547502
555035
575601
576517
583206
583539
585296
602092
602793
604426
605219
605725
605737
605746
622693
634108
642022
656886
658819
672950
687325
712140
741246
741692
749271
752609
752672
762191
772581
802282
812236
]
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 (290847 , 389966 , 391911 , 391926 , 391945 , 392019 , 392023 , 414125 , 420129 , 424765 , 429879 , 429880 , 429889 , 429890 , 429899 , 429900 , 429902 , 445409 , 448464 , 464790 , 466035 , 475318 , 480680 , 483731 , 491436 , 492165 , 510425 , 511375 , 514868 , 525468 , 541277 , 547502 , 555035 , 575601 , 576517 , 583206 , 583539 , 585296 , 602092 , 602793 , 604426 , 605219 , 605725 , 605737 , 605746 , 622693 , 634108 , 642022 , 656886 , 658819 , 672950 , 687325 , 712140 , 741246 , 741692 , 749271 , 752609 , 752672 , 762191 , 772581 , 802282 , 812236 );
Copy