3
8.06 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
802201
451465
387235
477085
703087
721735
786937
623285
790985
799004
748471
782155
816218
453857
563069
694192
573408
644698
45367
559346
653525
667474
666828
716777
561993
563214
604844
639879
748206
770239
529245
568384
772038
535306
490188
531189
536344
714109
566383
619830
431442
454261
460732
455505
482317
454206
471941
572844
590579
484711
484738
484558
460734
465378
466073
477705
485712
506211
477707
480749
466097
500857
464326
653524
620098
]
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 (802201 , 451465 , 387235 , 477085 , 703087 , 721735 , 786937 , 623285 , 790985 , 799004 , 748471 , 782155 , 816218 , 453857 , 563069 , 694192 , 573408 , 644698 , 45367 , 559346 , 653525 , 667474 , 666828 , 716777 , 561993 , 563214 , 604844 , 639879 , 748206 , 770239 , 529245 , 568384 , 772038 , 535306 , 490188 , 531189 , 536344 , 714109 , 566383 , 619830 , 431442 , 454261 , 460732 , 455505 , 482317 , 454206 , 471941 , 572844 , 590579 , 484711 , 484738 , 484558 , 460734 , 465378 , 466073 , 477705 , 485712 , 506211 , 477707 , 480749 , 466097 , 500857 , 464326 , 653524 , 620098 );
Copy
4
2.15 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
45367
387235
431442
451465
453857
454206
454261
455505
460732
460734
464326
465378
466073
466097
471941
477085
477705
477707
480749
482317
484558
484711
484738
485712
490188
500857
506211
529245
531189
535306
536344
559346
561993
563069
563214
566383
568384
572844
573408
590579
604844
619830
620098
623285
639879
644698
653524
653525
666828
667474
694192
703087
714109
716777
721735
748206
748471
770239
772038
782155
786937
790985
799004
802201
816218
]
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 (45367 , 387235 , 431442 , 451465 , 453857 , 454206 , 454261 , 455505 , 460732 , 460734 , 464326 , 465378 , 466073 , 466097 , 471941 , 477085 , 477705 , 477707 , 480749 , 482317 , 484558 , 484711 , 484738 , 485712 , 490188 , 500857 , 506211 , 529245 , 531189 , 535306 , 536344 , 559346 , 561993 , 563069 , 563214 , 566383 , 568384 , 572844 , 573408 , 590579 , 604844 , 619830 , 620098 , 623285 , 639879 , 644698 , 653524 , 653525 , 666828 , 667474 , 694192 , 703087 , 714109 , 716777 , 721735 , 748206 , 748471 , 770239 , 772038 , 782155 , 786937 , 790985 , 799004 , 802201 , 816218 );
Copy
5
103.08 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
45367
387235
431442
451465
453857
454206
454261
455505
460732
460734
464326
465378
466073
466097
471941
477085
477705
477707
480749
482317
484558
484711
484738
485712
490188
500857
506211
529245
531189
535306
536344
559346
561993
563069
563214
566383
568384
572844
573408
590579
604844
619830
620098
623285
639879
644698
653524
653525
666828
667474
694192
703087
714109
716777
721735
748206
748471
770239
772038
782155
786937
790985
799004
802201
816218
]
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 (45367 , 387235 , 431442 , 451465 , 453857 , 454206 , 454261 , 455505 , 460732 , 460734 , 464326 , 465378 , 466073 , 466097 , 471941 , 477085 , 477705 , 477707 , 480749 , 482317 , 484558 , 484711 , 484738 , 485712 , 490188 , 500857 , 506211 , 529245 , 531189 , 535306 , 536344 , 559346 , 561993 , 563069 , 563214 , 566383 , 568384 , 572844 , 573408 , 590579 , 604844 , 619830 , 620098 , 623285 , 639879 , 644698 , 653524 , 653525 , 666828 , 667474 , 694192 , 703087 , 714109 , 716777 , 721735 , 748206 , 748471 , 770239 , 772038 , 782155 , 786937 , 790985 , 799004 , 802201 , 816218 );
Copy