3
11.19 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
439804
416476
473893
448985
518388
519062
489026
494178
506527
556508
396316
491796
505917
514773
523436
563735
559791
676209
723175
665325
562938
587890
594026
798680
461366
439752
465767
501785
484343
499149
528235
516850
493175
451380
547824
557091
603852
593778
451664
453725
439886
452297
509330
496556
486536
442501
588078
618718
493181
510341
780783
486870
540657
677108
422205
513680
521832
459342
561298
603885
609225
559242
]
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 (439804 , 416476 , 473893 , 448985 , 518388 , 519062 , 489026 , 494178 , 506527 , 556508 , 396316 , 491796 , 505917 , 514773 , 523436 , 563735 , 559791 , 676209 , 723175 , 665325 , 562938 , 587890 , 594026 , 798680 , 461366 , 439752 , 465767 , 501785 , 484343 , 499149 , 528235 , 516850 , 493175 , 451380 , 547824 , 557091 , 603852 , 593778 , 451664 , 453725 , 439886 , 452297 , 509330 , 496556 , 486536 , 442501 , 588078 , 618718 , 493181 , 510341 , 780783 , 486870 , 540657 , 677108 , 422205 , 513680 , 521832 , 459342 , 561298 , 603885 , 609225 , 559242 );
Copy
4
2.73 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
396316
416476
422205
439752
439804
439886
442501
448985
451380
451664
452297
453725
459342
461366
465767
473893
484343
486536
486870
489026
491796
493175
493181
494178
496556
499149
501785
505917
506527
509330
510341
513680
514773
516850
518388
519062
521832
523436
528235
540657
547824
556508
557091
559242
559791
561298
562938
563735
587890
588078
593778
594026
603852
603885
609225
618718
665325
676209
677108
723175
780783
798680
]
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 (396316 , 416476 , 422205 , 439752 , 439804 , 439886 , 442501 , 448985 , 451380 , 451664 , 452297 , 453725 , 459342 , 461366 , 465767 , 473893 , 484343 , 486536 , 486870 , 489026 , 491796 , 493175 , 493181 , 494178 , 496556 , 499149 , 501785 , 505917 , 506527 , 509330 , 510341 , 513680 , 514773 , 516850 , 518388 , 519062 , 521832 , 523436 , 528235 , 540657 , 547824 , 556508 , 557091 , 559242 , 559791 , 561298 , 562938 , 563735 , 587890 , 588078 , 593778 , 594026 , 603852 , 603885 , 609225 , 618718 , 665325 , 676209 , 677108 , 723175 , 780783 , 798680 );
Copy
5
109.58 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
396316
416476
422205
439752
439804
439886
442501
448985
451380
451664
452297
453725
459342
461366
465767
473893
484343
486536
486870
489026
491796
493175
493181
494178
496556
499149
501785
505917
506527
509330
510341
513680
514773
516850
518388
519062
521832
523436
528235
540657
547824
556508
557091
559242
559791
561298
562938
563735
587890
588078
593778
594026
603852
603885
609225
618718
665325
676209
677108
723175
780783
798680
]
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 (396316 , 416476 , 422205 , 439752 , 439804 , 439886 , 442501 , 448985 , 451380 , 451664 , 452297 , 453725 , 459342 , 461366 , 465767 , 473893 , 484343 , 486536 , 486870 , 489026 , 491796 , 493175 , 493181 , 494178 , 496556 , 499149 , 501785 , 505917 , 506527 , 509330 , 510341 , 513680 , 514773 , 516850 , 518388 , 519062 , 521832 , 523436 , 528235 , 540657 , 547824 , 556508 , 557091 , 559242 , 559791 , 561298 , 562938 , 563735 , 587890 , 588078 , 593778 , 594026 , 603852 , 603885 , 609225 , 618718 , 665325 , 676209 , 677108 , 723175 , 780783 , 798680 );
Copy