64.71 ms (63.66%)
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
81734
88410
333214
336987
337263
339415
341622
386613
389700
390935
392440
392544
392552
392655
393323
394597
394608
394636
395144
396778
397263
397775
397807
398044
398464
398516
398634
398689
399053
400666
400732
402409
406658
408178
408219
411134
411307
412537
416083
416208
417502
417998
418395
418838
418848
419308
419826
420622
421417
422305
422734
422816
423615
423628
423630
423708
424697
425394
426241
432317
432337
433996
]
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 (81734 , 88410 , 333214 , 336987 , 337263 , 339415 , 341622 , 386613 , 389700 , 390935 , 392440 , 392544 , 392552 , 392655 , 393323 , 394597 , 394608 , 394636 , 395144 , 396778 , 397263 , 397775 , 397807 , 398044 , 398464 , 398516 , 398634 , 398689 , 399053 , 400666 , 400732 , 402409 , 406658 , 408178 , 408219 , 411134 , 411307 , 412537 , 416083 , 416208 , 417502 , 417998 , 418395 , 418838 , 418848 , 419308 , 419826 , 420622 , 421417 , 422305 , 422734 , 422816 , 423615 , 423628 , 423630 , 423708 , 424697 , 425394 , 426241 , 432317 , 432337 , 433996 );
Copy
8.03 ms (7.90%)
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
433996
432337
432317
426241
425394
424697
423708
423630
423628
423615
422816
422734
422305
421417
420622
419826
419308
418848
418838
418395
417998
417502
416208
416083
412537
411307
411134
408219
408178
406658
402409
400732
400666
399053
398689
398634
398516
398464
398044
397807
397775
397263
396778
395144
394636
394608
394597
393323
392655
392552
392544
392440
390935
389700
386613
341622
339415
337263
336987
333214
88410
81734
]
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 (433996 , 432337 , 432317 , 426241 , 425394 , 424697 , 423708 , 423630 , 423628 , 423615 , 422816 , 422734 , 422305 , 421417 , 420622 , 419826 , 419308 , 418848 , 418838 , 418395 , 417998 , 417502 , 416208 , 416083 , 412537 , 411307 , 411134 , 408219 , 408178 , 406658 , 402409 , 400732 , 400666 , 399053 , 398689 , 398634 , 398516 , 398464 , 398044 , 397807 , 397775 , 397263 , 396778 , 395144 , 394636 , 394608 , 394597 , 393323 , 392655 , 392552 , 392544 , 392440 , 390935 , 389700 , 386613 , 341622 , 339415 , 337263 , 336987 , 333214 , 88410 , 81734 );
Copy
2.26 ms (2.22%)
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
81734
88410
333214
336987
337263
339415
341622
386613
389700
390935
392440
392544
392552
392655
393323
394597
394608
394636
395144
396778
397263
397775
397807
398044
398464
398516
398634
398689
399053
400666
400732
402409
406658
408178
408219
411134
411307
412537
416083
416208
417502
417998
418395
418838
418848
419308
419826
420622
421417
422305
422734
422816
423615
423628
423630
423708
424697
425394
426241
432317
432337
433996
]
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 (81734 , 88410 , 333214 , 336987 , 337263 , 339415 , 341622 , 386613 , 389700 , 390935 , 392440 , 392544 , 392552 , 392655 , 393323 , 394597 , 394608 , 394636 , 395144 , 396778 , 397263 , 397775 , 397807 , 398044 , 398464 , 398516 , 398634 , 398689 , 399053 , 400666 , 400732 , 402409 , 406658 , 408178 , 408219 , 411134 , 411307 , 412537 , 416083 , 416208 , 417502 , 417998 , 418395 , 418838 , 418848 , 419308 , 419826 , 420622 , 421417 , 422305 , 422734 , 422816 , 423615 , 423628 , 423630 , 423708 , 424697 , 425394 , 426241 , 432317 , 432337 , 433996 );
Copy