4
12.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
392333
743241
759815
566685
593300
615729
815118
779946
815053
415508
718520
629389
593608
781856
775919
814289
607123
608720
552440
572332
672122
621689
805387
532974
580152
552441
672158
596650
529238
783311
486290
534004
641984
828711
543471
541207
590749
599199
617137
817465
644287
721695
502252
557277
589774
525733
653248
557307
713731
399622
712712
594766
612030
430801
594779
612458
446303
514051
558055
600280
611880
487054
508530
526341
467329
571968
552405
720115
460218
522867
478542
567290
448363
]
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 (392333 , 743241 , 759815 , 566685 , 593300 , 615729 , 815118 , 779946 , 815053 , 415508 , 718520 , 629389 , 593608 , 781856 , 775919 , 814289 , 607123 , 608720 , 552440 , 572332 , 672122 , 621689 , 805387 , 532974 , 580152 , 552441 , 672158 , 596650 , 529238 , 783311 , 486290 , 534004 , 641984 , 828711 , 543471 , 541207 , 590749 , 599199 , 617137 , 817465 , 644287 , 721695 , 502252 , 557277 , 589774 , 525733 , 653248 , 557307 , 713731 , 399622 , 712712 , 594766 , 612030 , 430801 , 594779 , 612458 , 446303 , 514051 , 558055 , 600280 , 611880 , 487054 , 508530 , 526341 , 467329 , 571968 , 552405 , 720115 , 460218 , 522867 , 478542 , 567290 , 448363 );
Copy
5
2.65 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
392333
399622
415508
430801
446303
448363
460218
467329
478542
486290
487054
502252
508530
514051
522867
525733
526341
529238
532974
534004
541207
543471
552405
552440
552441
557277
557307
558055
566685
567290
571968
572332
580152
589774
593300
593608
594766
594779
596650
599199
600280
607123
608720
611880
612030
612458
615729
617137
621689
629389
641984
644287
653248
672122
672158
712712
713731
718520
720115
721695
743241
759815
775919
779946
781856
783311
805387
814289
815053
815118
817465
828711
]
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 (392333 , 399622 , 415508 , 430801 , 446303 , 448363 , 460218 , 467329 , 478542 , 486290 , 487054 , 502252 , 508530 , 514051 , 522867 , 525733 , 526341 , 529238 , 532974 , 534004 , 541207 , 543471 , 552405 , 552440 , 552441 , 557277 , 557307 , 558055 , 566685 , 567290 , 571968 , 572332 , 580152 , 589774 , 593300 , 593608 , 594766 , 594779 , 596650 , 599199 , 600280 , 607123 , 608720 , 611880 , 612030 , 612458 , 615729 , 617137 , 621689 , 629389 , 641984 , 644287 , 653248 , 672122 , 672158 , 712712 , 713731 , 718520 , 720115 , 721695 , 743241 , 759815 , 775919 , 779946 , 781856 , 783311 , 805387 , 814289 , 815053 , 815118 , 817465 , 828711 );
Copy
6
79.79 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
392333
399622
415508
430801
446303
448363
460218
467329
478542
486290
487054
502252
508530
514051
522867
525733
526341
529238
532974
534004
541207
543471
552405
552440
552441
557277
557307
558055
566685
567290
571968
572332
580152
589774
593300
593608
594766
594779
596650
599199
600280
607123
608720
611880
612030
612458
615729
617137
621689
629389
641984
644287
653248
672122
672158
712712
713731
718520
720115
721695
743241
759815
775919
779946
781856
783311
805387
814289
815053
815118
817465
828711
]
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 (392333 , 399622 , 415508 , 430801 , 446303 , 448363 , 460218 , 467329 , 478542 , 486290 , 487054 , 502252 , 508530 , 514051 , 522867 , 525733 , 526341 , 529238 , 532974 , 534004 , 541207 , 543471 , 552405 , 552440 , 552441 , 557277 , 557307 , 558055 , 566685 , 567290 , 571968 , 572332 , 580152 , 589774 , 593300 , 593608 , 594766 , 594779 , 596650 , 599199 , 600280 , 607123 , 608720 , 611880 , 612030 , 612458 , 615729 , 617137 , 621689 , 629389 , 641984 , 644287 , 653248 , 672122 , 672158 , 712712 , 713731 , 718520 , 720115 , 721695 , 743241 , 759815 , 775919 , 779946 , 781856 , 783311 , 805387 , 814289 , 815053 , 815118 , 817465 , 828711 );
Copy