3
10.13 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
575860
805701
545439
589166
444896
545392
545429
648696
594143
790711
656162
792867
595215
552745
564237
541484
545426
614956
614975
797068
545404
398097
740523
823372
646789
414253
382207
449970
808742
550550
680249
574362
691259
434327
448571
443260
444283
416733
416583
443432
528657
416722
497692
729852
393220
416648
419824
595530
774866
450930
774826
446796
616315
397420
410295
583287
807566
788691
797825
806583
436186
410602
445211
587264
449210
582538
523740
501676
486511
]
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 (575860 , 805701 , 545439 , 589166 , 444896 , 545392 , 545429 , 648696 , 594143 , 790711 , 656162 , 792867 , 595215 , 552745 , 564237 , 541484 , 545426 , 614956 , 614975 , 797068 , 545404 , 398097 , 740523 , 823372 , 646789 , 414253 , 382207 , 449970 , 808742 , 550550 , 680249 , 574362 , 691259 , 434327 , 448571 , 443260 , 444283 , 416733 , 416583 , 443432 , 528657 , 416722 , 497692 , 729852 , 393220 , 416648 , 419824 , 595530 , 774866 , 450930 , 774826 , 446796 , 616315 , 397420 , 410295 , 583287 , 807566 , 788691 , 797825 , 806583 , 436186 , 410602 , 445211 , 587264 , 449210 , 582538 , 523740 , 501676 , 486511 );
Copy
4
2.61 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
382207
393220
397420
398097
410295
410602
414253
416583
416648
416722
416733
419824
434327
436186
443260
443432
444283
444896
445211
446796
448571
449210
449970
450930
486511
497692
501676
523740
528657
541484
545392
545404
545426
545429
545439
550550
552745
564237
574362
575860
582538
583287
587264
589166
594143
595215
595530
614956
614975
616315
646789
648696
656162
680249
691259
729852
740523
774826
774866
788691
790711
792867
797068
797825
805701
806583
807566
808742
823372
]
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 (382207 , 393220 , 397420 , 398097 , 410295 , 410602 , 414253 , 416583 , 416648 , 416722 , 416733 , 419824 , 434327 , 436186 , 443260 , 443432 , 444283 , 444896 , 445211 , 446796 , 448571 , 449210 , 449970 , 450930 , 486511 , 497692 , 501676 , 523740 , 528657 , 541484 , 545392 , 545404 , 545426 , 545429 , 545439 , 550550 , 552745 , 564237 , 574362 , 575860 , 582538 , 583287 , 587264 , 589166 , 594143 , 595215 , 595530 , 614956 , 614975 , 616315 , 646789 , 648696 , 656162 , 680249 , 691259 , 729852 , 740523 , 774826 , 774866 , 788691 , 790711 , 792867 , 797068 , 797825 , 805701 , 806583 , 807566 , 808742 , 823372 );
Copy
5
79.27 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
382207
393220
397420
398097
410295
410602
414253
416583
416648
416722
416733
419824
434327
436186
443260
443432
444283
444896
445211
446796
448571
449210
449970
450930
486511
497692
501676
523740
528657
541484
545392
545404
545426
545429
545439
550550
552745
564237
574362
575860
582538
583287
587264
589166
594143
595215
595530
614956
614975
616315
646789
648696
656162
680249
691259
729852
740523
774826
774866
788691
790711
792867
797068
797825
805701
806583
807566
808742
823372
]
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 (382207 , 393220 , 397420 , 398097 , 410295 , 410602 , 414253 , 416583 , 416648 , 416722 , 416733 , 419824 , 434327 , 436186 , 443260 , 443432 , 444283 , 444896 , 445211 , 446796 , 448571 , 449210 , 449970 , 450930 , 486511 , 497692 , 501676 , 523740 , 528657 , 541484 , 545392 , 545404 , 545426 , 545429 , 545439 , 550550 , 552745 , 564237 , 574362 , 575860 , 582538 , 583287 , 587264 , 589166 , 594143 , 595215 , 595530 , 614956 , 614975 , 616315 , 646789 , 648696 , 656162 , 680249 , 691259 , 729852 , 740523 , 774826 , 774866 , 788691 , 790711 , 792867 , 797068 , 797825 , 805701 , 806583 , 807566 , 808742 , 823372 );
Copy