3
10.65 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
799316
739538
776862
743129
382206
185464
685754
765482
689293
800066
622695
634842
404737
430989
802149
584726
382436
476336
825210
447244
584735
409305
270386
412222
600276
406237
818394
519594
504339
464474
775770
409109
409258
392772
417662
633112
379559
431019
816916
428583
405534
430811
407549
402598
490456
402092
689584
448310
758719
487514
601599
462812
414946
815288
421000
406232
511564
556049
607079
525116
533851
429084
]
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 (799316 , 739538 , 776862 , 743129 , 382206 , 185464 , 685754 , 765482 , 689293 , 800066 , 622695 , 634842 , 404737 , 430989 , 802149 , 584726 , 382436 , 476336 , 825210 , 447244 , 584735 , 409305 , 270386 , 412222 , 600276 , 406237 , 818394 , 519594 , 504339 , 464474 , 775770 , 409109 , 409258 , 392772 , 417662 , 633112 , 379559 , 431019 , 816916 , 428583 , 405534 , 430811 , 407549 , 402598 , 490456 , 402092 , 689584 , 448310 , 758719 , 487514 , 601599 , 462812 , 414946 , 815288 , 421000 , 406232 , 511564 , 556049 , 607079 , 525116 , 533851 , 429084 );
Copy
4
2.69 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
185464
270386
379559
382206
382436
392772
402092
402598
404737
405534
406232
406237
407549
409109
409258
409305
412222
414946
417662
421000
428583
429084
430811
430989
431019
447244
448310
462812
464474
476336
487514
490456
504339
511564
519594
525116
533851
556049
584726
584735
600276
601599
607079
622695
633112
634842
685754
689293
689584
739538
743129
758719
765482
775770
776862
799316
800066
802149
815288
816916
818394
825210
]
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 (185464 , 270386 , 379559 , 382206 , 382436 , 392772 , 402092 , 402598 , 404737 , 405534 , 406232 , 406237 , 407549 , 409109 , 409258 , 409305 , 412222 , 414946 , 417662 , 421000 , 428583 , 429084 , 430811 , 430989 , 431019 , 447244 , 448310 , 462812 , 464474 , 476336 , 487514 , 490456 , 504339 , 511564 , 519594 , 525116 , 533851 , 556049 , 584726 , 584735 , 600276 , 601599 , 607079 , 622695 , 633112 , 634842 , 685754 , 689293 , 689584 , 739538 , 743129 , 758719 , 765482 , 775770 , 776862 , 799316 , 800066 , 802149 , 815288 , 816916 , 818394 , 825210 );
Copy
5
82.21 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
185464
270386
379559
382206
382436
392772
402092
402598
404737
405534
406232
406237
407549
409109
409258
409305
412222
414946
417662
421000
428583
429084
430811
430989
431019
447244
448310
462812
464474
476336
487514
490456
504339
511564
519594
525116
533851
556049
584726
584735
600276
601599
607079
622695
633112
634842
685754
689293
689584
739538
743129
758719
765482
775770
776862
799316
800066
802149
815288
816916
818394
825210
]
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 (185464 , 270386 , 379559 , 382206 , 382436 , 392772 , 402092 , 402598 , 404737 , 405534 , 406232 , 406237 , 407549 , 409109 , 409258 , 409305 , 412222 , 414946 , 417662 , 421000 , 428583 , 429084 , 430811 , 430989 , 431019 , 447244 , 448310 , 462812 , 464474 , 476336 , 487514 , 490456 , 504339 , 511564 , 519594 , 525116 , 533851 , 556049 , 584726 , 584735 , 600276 , 601599 , 607079 , 622695 , 633112 , 634842 , 685754 , 689293 , 689584 , 739538 , 743129 , 758719 , 765482 , 775770 , 776862 , 799316 , 800066 , 802149 , 815288 , 816916 , 818394 , 825210 );
Copy