3
9.84 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
568532
558416
578406
539498
543607
429450
708789
810743
766729
722890
757391
471458
543764
445429
657505
758880
448353
786049
448321
461322
459838
526009
700912
518922
560379
501325
493170
475720
562853
554356
626564
466267
551870
471124
512799
508176
559291
459325
487750
541242
592354
568558
532380
541851
555129
586007
429001
583238
428924
531405
478459
542524
455337
550265
613936
481760
517788
519390
582179
604569
524506
522191
605416
520770
567050
533707
]
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 (568532 , 558416 , 578406 , 539498 , 543607 , 429450 , 708789 , 810743 , 766729 , 722890 , 757391 , 471458 , 543764 , 445429 , 657505 , 758880 , 448353 , 786049 , 448321 , 461322 , 459838 , 526009 , 700912 , 518922 , 560379 , 501325 , 493170 , 475720 , 562853 , 554356 , 626564 , 466267 , 551870 , 471124 , 512799 , 508176 , 559291 , 459325 , 487750 , 541242 , 592354 , 568558 , 532380 , 541851 , 555129 , 586007 , 429001 , 583238 , 428924 , 531405 , 478459 , 542524 , 455337 , 550265 , 613936 , 481760 , 517788 , 519390 , 582179 , 604569 , 524506 , 522191 , 605416 , 520770 , 567050 , 533707 );
Copy
4
2.61 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
428924
429001
429450
445429
448321
448353
455337
459325
459838
461322
466267
471124
471458
475720
478459
481760
487750
493170
501325
508176
512799
517788
518922
519390
520770
522191
524506
526009
531405
532380
533707
539498
541242
541851
542524
543607
543764
550265
551870
554356
555129
558416
559291
560379
562853
567050
568532
568558
578406
582179
583238
586007
592354
604569
605416
613936
626564
657505
700912
708789
722890
757391
758880
766729
786049
810743
]
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 (428924 , 429001 , 429450 , 445429 , 448321 , 448353 , 455337 , 459325 , 459838 , 461322 , 466267 , 471124 , 471458 , 475720 , 478459 , 481760 , 487750 , 493170 , 501325 , 508176 , 512799 , 517788 , 518922 , 519390 , 520770 , 522191 , 524506 , 526009 , 531405 , 532380 , 533707 , 539498 , 541242 , 541851 , 542524 , 543607 , 543764 , 550265 , 551870 , 554356 , 555129 , 558416 , 559291 , 560379 , 562853 , 567050 , 568532 , 568558 , 578406 , 582179 , 583238 , 586007 , 592354 , 604569 , 605416 , 613936 , 626564 , 657505 , 700912 , 708789 , 722890 , 757391 , 758880 , 766729 , 786049 , 810743 );
Copy
5
74.41 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
428924
429001
429450
445429
448321
448353
455337
459325
459838
461322
466267
471124
471458
475720
478459
481760
487750
493170
501325
508176
512799
517788
518922
519390
520770
522191
524506
526009
531405
532380
533707
539498
541242
541851
542524
543607
543764
550265
551870
554356
555129
558416
559291
560379
562853
567050
568532
568558
578406
582179
583238
586007
592354
604569
605416
613936
626564
657505
700912
708789
722890
757391
758880
766729
786049
810743
]
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 (428924 , 429001 , 429450 , 445429 , 448321 , 448353 , 455337 , 459325 , 459838 , 461322 , 466267 , 471124 , 471458 , 475720 , 478459 , 481760 , 487750 , 493170 , 501325 , 508176 , 512799 , 517788 , 518922 , 519390 , 520770 , 522191 , 524506 , 526009 , 531405 , 532380 , 533707 , 539498 , 541242 , 541851 , 542524 , 543607 , 543764 , 550265 , 551870 , 554356 , 555129 , 558416 , 559291 , 560379 , 562853 , 567050 , 568532 , 568558 , 578406 , 582179 , 583238 , 586007 , 592354 , 604569 , 605416 , 613936 , 626564 , 657505 , 700912 , 708789 , 722890 , 757391 , 758880 , 766729 , 786049 , 810743 );
Copy