3
10.38 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
734796
716989
794967
736693
779678
456952
608821
450418
736504
417471
615429
757020
477319
416039
425835
748062
716995
741081
746317
749532
637311
808420
816101
817392
737976
433463
496332
632933
818559
521153
773681
398151
526035
524337
581723
722230
391591
507783
606931
506270
414609
454858
789767
397528
417305
434017
418024
509884
459293
727027
473673
476329
494008
482650
716980
496119
507891
496330
565788
421277
513218
621347
589427
452965
]
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 (734796 , 716989 , 794967 , 736693 , 779678 , 456952 , 608821 , 450418 , 736504 , 417471 , 615429 , 757020 , 477319 , 416039 , 425835 , 748062 , 716995 , 741081 , 746317 , 749532 , 637311 , 808420 , 816101 , 817392 , 737976 , 433463 , 496332 , 632933 , 818559 , 521153 , 773681 , 398151 , 526035 , 524337 , 581723 , 722230 , 391591 , 507783 , 606931 , 506270 , 414609 , 454858 , 789767 , 397528 , 417305 , 434017 , 418024 , 509884 , 459293 , 727027 , 473673 , 476329 , 494008 , 482650 , 716980 , 496119 , 507891 , 496330 , 565788 , 421277 , 513218 , 621347 , 589427 , 452965 );
Copy
4
206.31 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
391591
397528
398151
414609
416039
417305
417471
418024
421277
425835
433463
434017
450418
452965
454858
456952
459293
473673
476329
477319
482650
494008
496119
496330
496332
506270
507783
507891
509884
513218
521153
524337
526035
565788
581723
589427
606931
608821
615429
621347
632933
637311
716980
716989
716995
722230
727027
734796
736504
736693
737976
741081
746317
748062
749532
757020
773681
779678
789767
794967
808420
816101
817392
818559
]
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 (391591 , 397528 , 398151 , 414609 , 416039 , 417305 , 417471 , 418024 , 421277 , 425835 , 433463 , 434017 , 450418 , 452965 , 454858 , 456952 , 459293 , 473673 , 476329 , 477319 , 482650 , 494008 , 496119 , 496330 , 496332 , 506270 , 507783 , 507891 , 509884 , 513218 , 521153 , 524337 , 526035 , 565788 , 581723 , 589427 , 606931 , 608821 , 615429 , 621347 , 632933 , 637311 , 716980 , 716989 , 716995 , 722230 , 727027 , 734796 , 736504 , 736693 , 737976 , 741081 , 746317 , 748062 , 749532 , 757020 , 773681 , 779678 , 789767 , 794967 , 808420 , 816101 , 817392 , 818559 );
Copy
5
290.84 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
391591
397528
398151
414609
416039
417305
417471
418024
421277
425835
433463
434017
450418
452965
454858
456952
459293
473673
476329
477319
482650
494008
496119
496330
496332
506270
507783
507891
509884
513218
521153
524337
526035
565788
581723
589427
606931
608821
615429
621347
632933
637311
716980
716989
716995
722230
727027
734796
736504
736693
737976
741081
746317
748062
749532
757020
773681
779678
789767
794967
808420
816101
817392
818559
]
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 (391591 , 397528 , 398151 , 414609 , 416039 , 417305 , 417471 , 418024 , 421277 , 425835 , 433463 , 434017 , 450418 , 452965 , 454858 , 456952 , 459293 , 473673 , 476329 , 477319 , 482650 , 494008 , 496119 , 496330 , 496332 , 506270 , 507783 , 507891 , 509884 , 513218 , 521153 , 524337 , 526035 , 565788 , 581723 , 589427 , 606931 , 608821 , 615429 , 621347 , 632933 , 637311 , 716980 , 716989 , 716995 , 722230 , 727027 , 734796 , 736504 , 736693 , 737976 , 741081 , 746317 , 748062 , 749532 , 757020 , 773681 , 779678 , 789767 , 794967 , 808420 , 816101 , 817392 , 818559 );
Copy