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