3
10.25 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
672252
602529
799426
616587
413745
813205
520244
742124
691050
566469
562356
585822
473757
460962
595314
396265
402503
658108
680707
456641
455965
460960
747984
568864
587315
473771
482478
455978
397161
429546
410356
477403
595705
745265
408768
623601
619487
649757
382768
391186
457785
459521
541016
776328
565213
634958
558377
483737
586002
651548
588221
768061
652125
645599
698853
600442
537287
672240
812278
703248
615613
801043
500785
529447
587307
604492
]
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 (672252 , 602529 , 799426 , 616587 , 413745 , 813205 , 520244 , 742124 , 691050 , 566469 , 562356 , 585822 , 473757 , 460962 , 595314 , 396265 , 402503 , 658108 , 680707 , 456641 , 455965 , 460960 , 747984 , 568864 , 587315 , 473771 , 482478 , 455978 , 397161 , 429546 , 410356 , 477403 , 595705 , 745265 , 408768 , 623601 , 619487 , 649757 , 382768 , 391186 , 457785 , 459521 , 541016 , 776328 , 565213 , 634958 , 558377 , 483737 , 586002 , 651548 , 588221 , 768061 , 652125 , 645599 , 698853 , 600442 , 537287 , 672240 , 812278 , 703248 , 615613 , 801043 , 500785 , 529447 , 587307 , 604492 );
Copy
4
2.63 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
382768
391186
396265
397161
402503
408768
410356
413745
429546
455965
455978
456641
457785
459521
460960
460962
473757
473771
477403
482478
483737
500785
520244
529447
537287
541016
558377
562356
565213
566469
568864
585822
586002
587307
587315
588221
595314
595705
600442
602529
604492
615613
616587
619487
623601
634958
645599
649757
651548
652125
658108
672240
672252
680707
691050
698853
703248
742124
745265
747984
768061
776328
799426
801043
812278
813205
]
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 (382768 , 391186 , 396265 , 397161 , 402503 , 408768 , 410356 , 413745 , 429546 , 455965 , 455978 , 456641 , 457785 , 459521 , 460960 , 460962 , 473757 , 473771 , 477403 , 482478 , 483737 , 500785 , 520244 , 529447 , 537287 , 541016 , 558377 , 562356 , 565213 , 566469 , 568864 , 585822 , 586002 , 587307 , 587315 , 588221 , 595314 , 595705 , 600442 , 602529 , 604492 , 615613 , 616587 , 619487 , 623601 , 634958 , 645599 , 649757 , 651548 , 652125 , 658108 , 672240 , 672252 , 680707 , 691050 , 698853 , 703248 , 742124 , 745265 , 747984 , 768061 , 776328 , 799426 , 801043 , 812278 , 813205 );
Copy
5
72.69 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
382768
391186
396265
397161
402503
408768
410356
413745
429546
455965
455978
456641
457785
459521
460960
460962
473757
473771
477403
482478
483737
500785
520244
529447
537287
541016
558377
562356
565213
566469
568864
585822
586002
587307
587315
588221
595314
595705
600442
602529
604492
615613
616587
619487
623601
634958
645599
649757
651548
652125
658108
672240
672252
680707
691050
698853
703248
742124
745265
747984
768061
776328
799426
801043
812278
813205
]
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 (382768 , 391186 , 396265 , 397161 , 402503 , 408768 , 410356 , 413745 , 429546 , 455965 , 455978 , 456641 , 457785 , 459521 , 460960 , 460962 , 473757 , 473771 , 477403 , 482478 , 483737 , 500785 , 520244 , 529447 , 537287 , 541016 , 558377 , 562356 , 565213 , 566469 , 568864 , 585822 , 586002 , 587307 , 587315 , 588221 , 595314 , 595705 , 600442 , 602529 , 604492 , 615613 , 616587 , 619487 , 623601 , 634958 , 645599 , 649757 , 651548 , 652125 , 658108 , 672240 , 672252 , 680707 , 691050 , 698853 , 703248 , 742124 , 745265 , 747984 , 768061 , 776328 , 799426 , 801043 , 812278 , 813205 );
Copy