64.95 ms (20.47%)
1
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
79574
86309
115020
327378
327421
382851
383329
384574
384898
385118
385890
386929
387380
387534
387664
388374
389709
389743
390492
393049
393713
395242
396421
397214
397777
397993
398368
398586
399887
402370
402719
402949
403242
404073
404125
405716
405897
410285
411446
412139
412158
412963
413101
413470
414975
415845
417799
417828
417934
417940
417945
417948
417951
417955
418856
418881
419466
419914
419931
419932
419950
420608
420769
420999
421411
421657
]
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 (79574 , 86309 , 115020 , 327378 , 327421 , 382851 , 383329 , 384574 , 384898 , 385118 , 385890 , 386929 , 387380 , 387534 , 387664 , 388374 , 389709 , 389743 , 390492 , 393049 , 393713 , 395242 , 396421 , 397214 , 397777 , 397993 , 398368 , 398586 , 399887 , 402370 , 402719 , 402949 , 403242 , 404073 , 404125 , 405716 , 405897 , 410285 , 411446 , 412139 , 412158 , 412963 , 413101 , 413470 , 414975 , 415845 , 417799 , 417828 , 417934 , 417940 , 417945 , 417948 , 417951 , 417955 , 418856 , 418881 , 419466 , 419914 , 419931 , 419932 , 419950 , 420608 , 420769 , 420999 , 421411 , 421657 );
Copy
10.79 ms (3.40%)
1
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
421657
421411
420999
420769
420608
419950
419932
419931
419914
419466
418881
418856
417955
417951
417948
417945
417940
417934
417828
417799
415845
414975
413470
413101
412963
412158
412139
411446
410285
405897
405716
404125
404073
403242
402949
402719
402370
399887
398586
398368
397993
397777
397214
396421
395242
393713
393049
390492
389743
389709
388374
387664
387534
387380
386929
385890
385118
384898
384574
383329
382851
327421
327378
115020
86309
79574
]
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 (421657 , 421411 , 420999 , 420769 , 420608 , 419950 , 419932 , 419931 , 419914 , 419466 , 418881 , 418856 , 417955 , 417951 , 417948 , 417945 , 417940 , 417934 , 417828 , 417799 , 415845 , 414975 , 413470 , 413101 , 412963 , 412158 , 412139 , 411446 , 410285 , 405897 , 405716 , 404125 , 404073 , 403242 , 402949 , 402719 , 402370 , 399887 , 398586 , 398368 , 397993 , 397777 , 397214 , 396421 , 395242 , 393713 , 393049 , 390492 , 389743 , 389709 , 388374 , 387664 , 387534 , 387380 , 386929 , 385890 , 385118 , 384898 , 384574 , 383329 , 382851 , 327421 , 327378 , 115020 , 86309 , 79574 );
Copy
2.14 ms (0.68%)
1
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
79574
86309
115020
327378
327421
382851
383329
384574
384898
385118
385890
386929
387380
387534
387664
388374
389709
389743
390492
393049
393713
395242
396421
397214
397777
397993
398368
398586
399887
402370
402719
402949
403242
404073
404125
405716
405897
410285
411446
412139
412158
412963
413101
413470
414975
415845
417799
417828
417934
417940
417945
417948
417951
417955
418856
418881
419466
419914
419931
419932
419950
420608
420769
420999
421411
421657
]
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 (79574 , 86309 , 115020 , 327378 , 327421 , 382851 , 383329 , 384574 , 384898 , 385118 , 385890 , 386929 , 387380 , 387534 , 387664 , 388374 , 389709 , 389743 , 390492 , 393049 , 393713 , 395242 , 396421 , 397214 , 397777 , 397993 , 398368 , 398586 , 399887 , 402370 , 402719 , 402949 , 403242 , 404073 , 404125 , 405716 , 405897 , 410285 , 411446 , 412139 , 412158 , 412963 , 413101 , 413470 , 414975 , 415845 , 417799 , 417828 , 417934 , 417940 , 417945 , 417948 , 417951 , 417955 , 418856 , 418881 , 419466 , 419914 , 419931 , 419932 , 419950 , 420608 , 420769 , 420999 , 421411 , 421657 );
Copy