3
11.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
594411
618471
577570
20617
734345
464623
417272
546780
647877
407171
531251
683262
424497
546829
599230
496613
397793
6699
540187
540195
646880
639748
532799
817115
565252
536691
457149
533949
538608
450814
425878
421164
521089
422908
720387
600382
463783
448046
516683
487087
644973
518917
509454
448798
439777
402724
443550
451572
508430
532753
540338
514820
453329
521581
443323
543551
647975
429572
491963
532680
515122
532745
462381
497921
646448
533915
]
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 (594411 , 618471 , 577570 , 20617 , 734345 , 464623 , 417272 , 546780 , 647877 , 407171 , 531251 , 683262 , 424497 , 546829 , 599230 , 496613 , 397793 , 6699 , 540187 , 540195 , 646880 , 639748 , 532799 , 817115 , 565252 , 536691 , 457149 , 533949 , 538608 , 450814 , 425878 , 421164 , 521089 , 422908 , 720387 , 600382 , 463783 , 448046 , 516683 , 487087 , 644973 , 518917 , 509454 , 448798 , 439777 , 402724 , 443550 , 451572 , 508430 , 532753 , 540338 , 514820 , 453329 , 521581 , 443323 , 543551 , 647975 , 429572 , 491963 , 532680 , 515122 , 532745 , 462381 , 497921 , 646448 , 533915 );
Copy
4
2.37 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
6699
20617
397793
402724
407171
417272
421164
422908
424497
425878
429572
439777
443323
443550
448046
448798
450814
451572
453329
457149
462381
463783
464623
487087
491963
496613
497921
508430
509454
514820
515122
516683
518917
521089
521581
531251
532680
532745
532753
532799
533915
533949
536691
538608
540187
540195
540338
543551
546780
546829
565252
577570
594411
599230
600382
618471
639748
644973
646448
646880
647877
647975
683262
720387
734345
817115
]
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 (6699 , 20617 , 397793 , 402724 , 407171 , 417272 , 421164 , 422908 , 424497 , 425878 , 429572 , 439777 , 443323 , 443550 , 448046 , 448798 , 450814 , 451572 , 453329 , 457149 , 462381 , 463783 , 464623 , 487087 , 491963 , 496613 , 497921 , 508430 , 509454 , 514820 , 515122 , 516683 , 518917 , 521089 , 521581 , 531251 , 532680 , 532745 , 532753 , 532799 , 533915 , 533949 , 536691 , 538608 , 540187 , 540195 , 540338 , 543551 , 546780 , 546829 , 565252 , 577570 , 594411 , 599230 , 600382 , 618471 , 639748 , 644973 , 646448 , 646880 , 647877 , 647975 , 683262 , 720387 , 734345 , 817115 );
Copy
5
88.14 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
6699
20617
397793
402724
407171
417272
421164
422908
424497
425878
429572
439777
443323
443550
448046
448798
450814
451572
453329
457149
462381
463783
464623
487087
491963
496613
497921
508430
509454
514820
515122
516683
518917
521089
521581
531251
532680
532745
532753
532799
533915
533949
536691
538608
540187
540195
540338
543551
546780
546829
565252
577570
594411
599230
600382
618471
639748
644973
646448
646880
647877
647975
683262
720387
734345
817115
]
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 (6699 , 20617 , 397793 , 402724 , 407171 , 417272 , 421164 , 422908 , 424497 , 425878 , 429572 , 439777 , 443323 , 443550 , 448046 , 448798 , 450814 , 451572 , 453329 , 457149 , 462381 , 463783 , 464623 , 487087 , 491963 , 496613 , 497921 , 508430 , 509454 , 514820 , 515122 , 516683 , 518917 , 521089 , 521581 , 531251 , 532680 , 532745 , 532753 , 532799 , 533915 , 533949 , 536691 , 538608 , 540187 , 540195 , 540338 , 543551 , 546780 , 546829 , 565252 , 577570 , 594411 , 599230 , 600382 , 618471 , 639748 , 644973 , 646448 , 646880 , 647877 , 647975 , 683262 , 720387 , 734345 , 817115 );
Copy