3
18.52 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
449170
534968
443784
421907
484681
522556
640723
410254
464368
421871
807407
759865
420635
728143
396253
405000
491169
598859
423329
544665
590469
573800
412311
439819
475439
724305
564203
508180
735778
422044
442673
476797
639060
751565
523537
490261
460673
688116
541751
509507
406698
513604
484672
531231
613177
553190
425523
525688
513025
592758
587266
487746
622351
536400
404584
419132
464328
510108
493958
544663
512059
571198
463757
466268
484680
607374
610606
503167
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 (449170 , 534968 , 443784 , 421907 , 484681 , 522556 , 640723 , 410254 , 464368 , 421871 , 807407 , 759865 , 420635 , 728143 , 396253 , 405000 , 491169 , 598859 , 423329 , 544665 , 590469 , 573800 , 412311 , 439819 , 475439 , 724305 , 564203 , 508180 , 735778 , 422044 , 442673 , 476797 , 639060 , 751565 , 523537 , 490261 , 460673 , 688116 , 541751 , 509507 , 406698 , 513604 , 484672 , 531231 , 613177 , 553190 , 425523 , 525688 , 513025 , 592758 , 587266 , 487746 , 622351 , 536400 , 404584 , 419132 , 464328 , 510108 , 493958 , 544663 , 512059 , 571198 , 463757 , 466268 , 484680 , 607374 , 610606 , 503167 , 567416 , 559233 );
Copy
4
2.55 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
396253
404584
405000
406698
410254
412311
419132
420635
421871
421907
422044
423329
425523
439819
442673
443784
449170
460673
463757
464328
464368
466268
475439
476797
484672
484680
484681
487746
490261
491169
493958
503167
508180
509507
510108
512059
513025
513604
522556
523537
525688
531231
534968
536400
541751
544663
544665
553190
559233
564203
567416
571198
573800
587266
590469
592758
598859
607374
610606
613177
622351
639060
640723
688116
724305
728143
735778
751565
759865
807407
]
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 (396253 , 404584 , 405000 , 406698 , 410254 , 412311 , 419132 , 420635 , 421871 , 421907 , 422044 , 423329 , 425523 , 439819 , 442673 , 443784 , 449170 , 460673 , 463757 , 464328 , 464368 , 466268 , 475439 , 476797 , 484672 , 484680 , 484681 , 487746 , 490261 , 491169 , 493958 , 503167 , 508180 , 509507 , 510108 , 512059 , 513025 , 513604 , 522556 , 523537 , 525688 , 531231 , 534968 , 536400 , 541751 , 544663 , 544665 , 553190 , 559233 , 564203 , 567416 , 571198 , 573800 , 587266 , 590469 , 592758 , 598859 , 607374 , 610606 , 613177 , 622351 , 639060 , 640723 , 688116 , 724305 , 728143 , 735778 , 751565 , 759865 , 807407 );
Copy
5
76.85 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
396253
404584
405000
406698
410254
412311
419132
420635
421871
421907
422044
423329
425523
439819
442673
443784
449170
460673
463757
464328
464368
466268
475439
476797
484672
484680
484681
487746
490261
491169
493958
503167
508180
509507
510108
512059
513025
513604
522556
523537
525688
531231
534968
536400
541751
544663
544665
553190
559233
564203
567416
571198
573800
587266
590469
592758
598859
607374
610606
613177
622351
639060
640723
688116
724305
728143
735778
751565
759865
807407
]
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 (396253 , 404584 , 405000 , 406698 , 410254 , 412311 , 419132 , 420635 , 421871 , 421907 , 422044 , 423329 , 425523 , 439819 , 442673 , 443784 , 449170 , 460673 , 463757 , 464328 , 464368 , 466268 , 475439 , 476797 , 484672 , 484680 , 484681 , 487746 , 490261 , 491169 , 493958 , 503167 , 508180 , 509507 , 510108 , 512059 , 513025 , 513604 , 522556 , 523537 , 525688 , 531231 , 534968 , 536400 , 541751 , 544663 , 544665 , 553190 , 559233 , 564203 , 567416 , 571198 , 573800 , 587266 , 590469 , 592758 , 598859 , 607374 , 610606 , 613177 , 622351 , 639060 , 640723 , 688116 , 724305 , 728143 , 735778 , 751565 , 759865 , 807407 );
Copy