4
18.40 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
563922
586682
563896
807372
563904
807378
807377
540549
807403
434209
563923
563931
563898
563920
443553
460669
563924
586680
807369
621964
524262
556503
581876
609096
513156
433730
559008
614097
582617
563932
512451
524323
524656
428857
434259
450795
448362
524260
524268
524259
524265
425973
465303
485892
449858
451713
451013
513150
524652
524261
524267
433671
524271
524655
443942
434257
434251
460204
524272
450804
430228
450377
479019
426236
460277
533959
432831
513155
511369
]
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 (563922 , 586682 , 563896 , 807372 , 563904 , 807378 , 807377 , 540549 , 807403 , 434209 , 563923 , 563931 , 563898 , 563920 , 443553 , 460669 , 563924 , 586680 , 807369 , 621964 , 524262 , 556503 , 581876 , 609096 , 513156 , 433730 , 559008 , 614097 , 582617 , 563932 , 512451 , 524323 , 524656 , 428857 , 434259 , 450795 , 448362 , 524260 , 524268 , 524259 , 524265 , 425973 , 465303 , 485892 , 449858 , 451713 , 451013 , 513150 , 524652 , 524261 , 524267 , 433671 , 524271 , 524655 , 443942 , 434257 , 434251 , 460204 , 524272 , 450804 , 430228 , 450377 , 479019 , 426236 , 460277 , 533959 , 432831 , 513155 , 511369 );
Copy
5
2.59 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
425973
426236
428857
430228
432831
433671
433730
434209
434251
434257
434259
443553
443942
448362
449858
450377
450795
450804
451013
451713
460204
460277
460669
465303
479019
485892
511369
512451
513150
513155
513156
524259
524260
524261
524262
524265
524267
524268
524271
524272
524323
524652
524655
524656
533959
540549
556503
559008
563896
563898
563904
563920
563922
563923
563924
563931
563932
581876
582617
586680
586682
609096
614097
621964
807369
807372
807377
807378
807403
]
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 (425973 , 426236 , 428857 , 430228 , 432831 , 433671 , 433730 , 434209 , 434251 , 434257 , 434259 , 443553 , 443942 , 448362 , 449858 , 450377 , 450795 , 450804 , 451013 , 451713 , 460204 , 460277 , 460669 , 465303 , 479019 , 485892 , 511369 , 512451 , 513150 , 513155 , 513156 , 524259 , 524260 , 524261 , 524262 , 524265 , 524267 , 524268 , 524271 , 524272 , 524323 , 524652 , 524655 , 524656 , 533959 , 540549 , 556503 , 559008 , 563896 , 563898 , 563904 , 563920 , 563922 , 563923 , 563924 , 563931 , 563932 , 581876 , 582617 , 586680 , 586682 , 609096 , 614097 , 621964 , 807369 , 807372 , 807377 , 807378 , 807403 );
Copy
6
88.62 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
425973
426236
428857
430228
432831
433671
433730
434209
434251
434257
434259
443553
443942
448362
449858
450377
450795
450804
451013
451713
460204
460277
460669
465303
479019
485892
511369
512451
513150
513155
513156
524259
524260
524261
524262
524265
524267
524268
524271
524272
524323
524652
524655
524656
533959
540549
556503
559008
563896
563898
563904
563920
563922
563923
563924
563931
563932
581876
582617
586680
586682
609096
614097
621964
807369
807372
807377
807378
807403
]
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 (425973 , 426236 , 428857 , 430228 , 432831 , 433671 , 433730 , 434209 , 434251 , 434257 , 434259 , 443553 , 443942 , 448362 , 449858 , 450377 , 450795 , 450804 , 451013 , 451713 , 460204 , 460277 , 460669 , 465303 , 479019 , 485892 , 511369 , 512451 , 513150 , 513155 , 513156 , 524259 , 524260 , 524261 , 524262 , 524265 , 524267 , 524268 , 524271 , 524272 , 524323 , 524652 , 524655 , 524656 , 533959 , 540549 , 556503 , 559008 , 563896 , 563898 , 563904 , 563920 , 563922 , 563923 , 563924 , 563931 , 563932 , 581876 , 582617 , 586680 , 586682 , 609096 , 614097 , 621964 , 807369 , 807372 , 807377 , 807378 , 807403 );
Copy