86.92 ms (65.83%)
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
188462
312447
382971
391702
407786
411603
411694
411697
411703
411715
411716
411725
411726
411738
412973
424473
443423
443824
446285
451436
454240
460172
466207
468072
469591
471053
476269
476347
476349
476352
477706
483088
486534
488993
492137
495242
495527
496328
513178
515026
519387
521807
540235
556516
556842
561476
565592
583464
628717
630947
634717
660110
668488
694177
696499
705467
715001
718338
718550
718808
718817
718843
728557
733415
755208
768093
780436
780594
794725
808013
]
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 (188462 , 312447 , 382971 , 391702 , 407786 , 411603 , 411694 , 411697 , 411703 , 411715 , 411716 , 411725 , 411726 , 411738 , 412973 , 424473 , 443423 , 443824 , 446285 , 451436 , 454240 , 460172 , 466207 , 468072 , 469591 , 471053 , 476269 , 476347 , 476349 , 476352 , 477706 , 483088 , 486534 , 488993 , 492137 , 495242 , 495527 , 496328 , 513178 , 515026 , 519387 , 521807 , 540235 , 556516 , 556842 , 561476 , 565592 , 583464 , 628717 , 630947 , 634717 , 660110 , 668488 , 694177 , 696499 , 705467 , 715001 , 718338 , 718550 , 718808 , 718817 , 718843 , 728557 , 733415 , 755208 , 768093 , 780436 , 780594 , 794725 , 808013 );
Copy
11.04 ms (8.36%)
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
540235
668488
794725
630947
715001
780594
705467
768093
443423
718817
718550
718338
565592
556516
446285
483088
718843
561476
628717
634717
312447
513178
694177
728557
495242
808013
733415
412973
583464
488993
556842
660110
718808
391702
411716
407786
411715
443824
471053
515026
469591
451436
780436
460172
755208
411726
411603
188462
411738
411697
492137
411694
411725
476347
454240
424473
411703
477706
476349
466207
519387
496328
476269
476352
382971
521807
495527
486534
468072
696499
]
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 (540235 , 668488 , 794725 , 630947 , 715001 , 780594 , 705467 , 768093 , 443423 , 718817 , 718550 , 718338 , 565592 , 556516 , 446285 , 483088 , 718843 , 561476 , 628717 , 634717 , 312447 , 513178 , 694177 , 728557 , 495242 , 808013 , 733415 , 412973 , 583464 , 488993 , 556842 , 660110 , 718808 , 391702 , 411716 , 407786 , 411715 , 443824 , 471053 , 515026 , 469591 , 451436 , 780436 , 460172 , 755208 , 411726 , 411603 , 188462 , 411738 , 411697 , 492137 , 411694 , 411725 , 476347 , 454240 , 424473 , 411703 , 477706 , 476349 , 466207 , 519387 , 496328 , 476269 , 476352 , 382971 , 521807 , 495527 , 486534 , 468072 , 696499 );
Copy
2.98 ms (2.25%)
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
188462
312447
382971
391702
407786
411603
411694
411697
411703
411715
411716
411725
411726
411738
412973
424473
443423
443824
446285
451436
454240
460172
466207
468072
469591
471053
476269
476347
476349
476352
477706
483088
486534
488993
492137
495242
495527
496328
513178
515026
519387
521807
540235
556516
556842
561476
565592
583464
628717
630947
634717
660110
668488
694177
696499
705467
715001
718338
718550
718808
718817
718843
728557
733415
755208
768093
780436
780594
794725
808013
]
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 (188462 , 312447 , 382971 , 391702 , 407786 , 411603 , 411694 , 411697 , 411703 , 411715 , 411716 , 411725 , 411726 , 411738 , 412973 , 424473 , 443423 , 443824 , 446285 , 451436 , 454240 , 460172 , 466207 , 468072 , 469591 , 471053 , 476269 , 476347 , 476349 , 476352 , 477706 , 483088 , 486534 , 488993 , 492137 , 495242 , 495527 , 496328 , 513178 , 515026 , 519387 , 521807 , 540235 , 556516 , 556842 , 561476 , 565592 , 583464 , 628717 , 630947 , 634717 , 660110 , 668488 , 694177 , 696499 , 705467 , 715001 , 718338 , 718550 , 718808 , 718817 , 718843 , 728557 , 733415 , 755208 , 768093 , 780436 , 780594 , 794725 , 808013 );
Copy