3
15.25 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
492535
515593
520851
498402
499318
512733
515861
522895
523859
506052
532676
544788
551919
572264
576645
581873
676632
681660
687924
582531
588144
593373
602594
612335
613995
633786
620157
808526
389700
447718
521192
495778
815268
526372
573309
605456
641698
612381
466241
538333
495752
490409
511313
539319
562001
571213
583553
667748
588329
621317
801907
476079
515579
504446
517386
523335
535344
541833
562894
567743
577823
605182
469462
526951
543842
607129
484017
495393
496564
475630
516686
514070
]
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 (492535 , 515593 , 520851 , 498402 , 499318 , 512733 , 515861 , 522895 , 523859 , 506052 , 532676 , 544788 , 551919 , 572264 , 576645 , 581873 , 676632 , 681660 , 687924 , 582531 , 588144 , 593373 , 602594 , 612335 , 613995 , 633786 , 620157 , 808526 , 389700 , 447718 , 521192 , 495778 , 815268 , 526372 , 573309 , 605456 , 641698 , 612381 , 466241 , 538333 , 495752 , 490409 , 511313 , 539319 , 562001 , 571213 , 583553 , 667748 , 588329 , 621317 , 801907 , 476079 , 515579 , 504446 , 517386 , 523335 , 535344 , 541833 , 562894 , 567743 , 577823 , 605182 , 469462 , 526951 , 543842 , 607129 , 484017 , 495393 , 496564 , 475630 , 516686 , 514070 );
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
389700
447718
466241
469462
475630
476079
484017
490409
492535
495393
495752
495778
496564
498402
499318
504446
506052
511313
512733
514070
515579
515593
515861
516686
517386
520851
521192
522895
523335
523859
526372
526951
532676
535344
538333
539319
541833
543842
544788
551919
562001
562894
567743
571213
572264
573309
576645
577823
581873
582531
583553
588144
588329
593373
602594
605182
605456
607129
612335
612381
613995
620157
621317
633786
641698
667748
676632
681660
687924
801907
808526
815268
]
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 (389700 , 447718 , 466241 , 469462 , 475630 , 476079 , 484017 , 490409 , 492535 , 495393 , 495752 , 495778 , 496564 , 498402 , 499318 , 504446 , 506052 , 511313 , 512733 , 514070 , 515579 , 515593 , 515861 , 516686 , 517386 , 520851 , 521192 , 522895 , 523335 , 523859 , 526372 , 526951 , 532676 , 535344 , 538333 , 539319 , 541833 , 543842 , 544788 , 551919 , 562001 , 562894 , 567743 , 571213 , 572264 , 573309 , 576645 , 577823 , 581873 , 582531 , 583553 , 588144 , 588329 , 593373 , 602594 , 605182 , 605456 , 607129 , 612335 , 612381 , 613995 , 620157 , 621317 , 633786 , 641698 , 667748 , 676632 , 681660 , 687924 , 801907 , 808526 , 815268 );
Copy
5
88.30 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
389700
447718
466241
469462
475630
476079
484017
490409
492535
495393
495752
495778
496564
498402
499318
504446
506052
511313
512733
514070
515579
515593
515861
516686
517386
520851
521192
522895
523335
523859
526372
526951
532676
535344
538333
539319
541833
543842
544788
551919
562001
562894
567743
571213
572264
573309
576645
577823
581873
582531
583553
588144
588329
593373
602594
605182
605456
607129
612335
612381
613995
620157
621317
633786
641698
667748
676632
681660
687924
801907
808526
815268
]
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 (389700 , 447718 , 466241 , 469462 , 475630 , 476079 , 484017 , 490409 , 492535 , 495393 , 495752 , 495778 , 496564 , 498402 , 499318 , 504446 , 506052 , 511313 , 512733 , 514070 , 515579 , 515593 , 515861 , 516686 , 517386 , 520851 , 521192 , 522895 , 523335 , 523859 , 526372 , 526951 , 532676 , 535344 , 538333 , 539319 , 541833 , 543842 , 544788 , 551919 , 562001 , 562894 , 567743 , 571213 , 572264 , 573309 , 576645 , 577823 , 581873 , 582531 , 583553 , 588144 , 588329 , 593373 , 602594 , 605182 , 605456 , 607129 , 612335 , 612381 , 613995 , 620157 , 621317 , 633786 , 641698 , 667748 , 676632 , 681660 , 687924 , 801907 , 808526 , 815268 );
Copy