3
11.21 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
513203
779639
744070
487153
740768
511543
534454
614294
779338
786388
813271
581383
569032
427964
464553
581033
411213
575656
562126
509666
577395
783161
576122
527931
561096
570811
437959
680741
685034
593077
520839
618952
482333
705710
733540
606235
459584
551710
514597
469336
541567
568392
603307
589833
799199
558711
555233
658935
414184
573365
401965
633119
633312
567522
576713
591289
669233
592457
588033
518771
469272
662801
443387
520983
654671
382154
631937
619802
606202
546125
615800
614273
585725
]
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 (513203 , 779639 , 744070 , 487153 , 740768 , 511543 , 534454 , 614294 , 779338 , 786388 , 813271 , 581383 , 569032 , 427964 , 464553 , 581033 , 411213 , 575656 , 562126 , 509666 , 577395 , 783161 , 576122 , 527931 , 561096 , 570811 , 437959 , 680741 , 685034 , 593077 , 520839 , 618952 , 482333 , 705710 , 733540 , 606235 , 459584 , 551710 , 514597 , 469336 , 541567 , 568392 , 603307 , 589833 , 799199 , 558711 , 555233 , 658935 , 414184 , 573365 , 401965 , 633119 , 633312 , 567522 , 576713 , 591289 , 669233 , 592457 , 588033 , 518771 , 469272 , 662801 , 443387 , 520983 , 654671 , 382154 , 631937 , 619802 , 606202 , 546125 , 615800 , 614273 , 585725 );
Copy
4
2.34 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
382154
401965
411213
414184
427964
437959
443387
459584
464553
469272
469336
482333
487153
509666
511543
513203
514597
518771
520839
520983
527931
534454
541567
546125
551710
555233
558711
561096
562126
567522
568392
569032
570811
573365
575656
576122
576713
577395
581033
581383
585725
588033
589833
591289
592457
593077
603307
606202
606235
614273
614294
615800
618952
619802
631937
633119
633312
654671
658935
662801
669233
680741
685034
705710
733540
740768
744070
779338
779639
783161
786388
799199
813271
]
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 (382154 , 401965 , 411213 , 414184 , 427964 , 437959 , 443387 , 459584 , 464553 , 469272 , 469336 , 482333 , 487153 , 509666 , 511543 , 513203 , 514597 , 518771 , 520839 , 520983 , 527931 , 534454 , 541567 , 546125 , 551710 , 555233 , 558711 , 561096 , 562126 , 567522 , 568392 , 569032 , 570811 , 573365 , 575656 , 576122 , 576713 , 577395 , 581033 , 581383 , 585725 , 588033 , 589833 , 591289 , 592457 , 593077 , 603307 , 606202 , 606235 , 614273 , 614294 , 615800 , 618952 , 619802 , 631937 , 633119 , 633312 , 654671 , 658935 , 662801 , 669233 , 680741 , 685034 , 705710 , 733540 , 740768 , 744070 , 779338 , 779639 , 783161 , 786388 , 799199 , 813271 );
Copy
5
117.05 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
382154
401965
411213
414184
427964
437959
443387
459584
464553
469272
469336
482333
487153
509666
511543
513203
514597
518771
520839
520983
527931
534454
541567
546125
551710
555233
558711
561096
562126
567522
568392
569032
570811
573365
575656
576122
576713
577395
581033
581383
585725
588033
589833
591289
592457
593077
603307
606202
606235
614273
614294
615800
618952
619802
631937
633119
633312
654671
658935
662801
669233
680741
685034
705710
733540
740768
744070
779338
779639
783161
786388
799199
813271
]
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 (382154 , 401965 , 411213 , 414184 , 427964 , 437959 , 443387 , 459584 , 464553 , 469272 , 469336 , 482333 , 487153 , 509666 , 511543 , 513203 , 514597 , 518771 , 520839 , 520983 , 527931 , 534454 , 541567 , 546125 , 551710 , 555233 , 558711 , 561096 , 562126 , 567522 , 568392 , 569032 , 570811 , 573365 , 575656 , 576122 , 576713 , 577395 , 581033 , 581383 , 585725 , 588033 , 589833 , 591289 , 592457 , 593077 , 603307 , 606202 , 606235 , 614273 , 614294 , 615800 , 618952 , 619802 , 631937 , 633119 , 633312 , 654671 , 658935 , 662801 , 669233 , 680741 , 685034 , 705710 , 733540 , 740768 , 744070 , 779338 , 779639 , 783161 , 786388 , 799199 , 813271 );
Copy