3
14.76 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
502482
562763
420587
466065
552066
421890
514648
487550
472320
448031
514772
433319
509507
424328
447930
535259
622351
508180
410254
452131
565281
603685
428477
530507
651937
514997
441004
624030
590469
421871
576859
482088
513137
477079
442673
464368
514640
476797
387321
598441
404629
404742
404876
477097
422044
751565
436178
525688
560189
605445
515122
441024
416886
625675
420635
615818
525287
603854
439819
484924
546861
632304
536397
466404
404584
514809
565783
526203
567416
559233
]
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 (502482 , 562763 , 420587 , 466065 , 552066 , 421890 , 514648 , 487550 , 472320 , 448031 , 514772 , 433319 , 509507 , 424328 , 447930 , 535259 , 622351 , 508180 , 410254 , 452131 , 565281 , 603685 , 428477 , 530507 , 651937 , 514997 , 441004 , 624030 , 590469 , 421871 , 576859 , 482088 , 513137 , 477079 , 442673 , 464368 , 514640 , 476797 , 387321 , 598441 , 404629 , 404742 , 404876 , 477097 , 422044 , 751565 , 436178 , 525688 , 560189 , 605445 , 515122 , 441024 , 416886 , 625675 , 420635 , 615818 , 525287 , 603854 , 439819 , 484924 , 546861 , 632304 , 536397 , 466404 , 404584 , 514809 , 565783 , 526203 , 567416 , 559233 );
Copy
4
2.66 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
387321
404584
404629
404742
404876
410254
416886
420587
420635
421871
421890
422044
424328
428477
433319
436178
439819
441004
441024
442673
447930
448031
452131
464368
466065
466404
472320
476797
477079
477097
482088
484924
487550
502482
508180
509507
513137
514640
514648
514772
514809
514997
515122
525287
525688
526203
530507
535259
536397
546861
552066
559233
560189
562763
565281
565783
567416
576859
590469
598441
603685
603854
605445
615818
622351
624030
625675
632304
651937
751565
]
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 (387321 , 404584 , 404629 , 404742 , 404876 , 410254 , 416886 , 420587 , 420635 , 421871 , 421890 , 422044 , 424328 , 428477 , 433319 , 436178 , 439819 , 441004 , 441024 , 442673 , 447930 , 448031 , 452131 , 464368 , 466065 , 466404 , 472320 , 476797 , 477079 , 477097 , 482088 , 484924 , 487550 , 502482 , 508180 , 509507 , 513137 , 514640 , 514648 , 514772 , 514809 , 514997 , 515122 , 525287 , 525688 , 526203 , 530507 , 535259 , 536397 , 546861 , 552066 , 559233 , 560189 , 562763 , 565281 , 565783 , 567416 , 576859 , 590469 , 598441 , 603685 , 603854 , 605445 , 615818 , 622351 , 624030 , 625675 , 632304 , 651937 , 751565 );
Copy
5
91.49 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
387321
404584
404629
404742
404876
410254
416886
420587
420635
421871
421890
422044
424328
428477
433319
436178
439819
441004
441024
442673
447930
448031
452131
464368
466065
466404
472320
476797
477079
477097
482088
484924
487550
502482
508180
509507
513137
514640
514648
514772
514809
514997
515122
525287
525688
526203
530507
535259
536397
546861
552066
559233
560189
562763
565281
565783
567416
576859
590469
598441
603685
603854
605445
615818
622351
624030
625675
632304
651937
751565
]
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 (387321 , 404584 , 404629 , 404742 , 404876 , 410254 , 416886 , 420587 , 420635 , 421871 , 421890 , 422044 , 424328 , 428477 , 433319 , 436178 , 439819 , 441004 , 441024 , 442673 , 447930 , 448031 , 452131 , 464368 , 466065 , 466404 , 472320 , 476797 , 477079 , 477097 , 482088 , 484924 , 487550 , 502482 , 508180 , 509507 , 513137 , 514640 , 514648 , 514772 , 514809 , 514997 , 515122 , 525287 , 525688 , 526203 , 530507 , 535259 , 536397 , 546861 , 552066 , 559233 , 560189 , 562763 , 565281 , 565783 , 567416 , 576859 , 590469 , 598441 , 603685 , 603854 , 605445 , 615818 , 622351 , 624030 , 625675 , 632304 , 651937 , 751565 );
Copy