3
222.98 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
574745
657484
661702
666428
723502
513253
520687
584305
560508
567820
445103
546648
564144
622346
787371
457049
453786
445028
534346
534359
566363
602556
486454
492837
508605
555024
651845
767025
470026
517594
472190
542710
527350
433656
457622
517879
523888
575632
589968
413749
519494
550606
559580
564630
567071
719806
452885
584366
632576
814829
491405
566324
559930
613356
553477
530025
490608
591855
605661
434276
523012
470985
700670
476216
532747
527268
537210
605492
]
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 (574745 , 657484 , 661702 , 666428 , 723502 , 513253 , 520687 , 584305 , 560508 , 567820 , 445103 , 546648 , 564144 , 622346 , 787371 , 457049 , 453786 , 445028 , 534346 , 534359 , 566363 , 602556 , 486454 , 492837 , 508605 , 555024 , 651845 , 767025 , 470026 , 517594 , 472190 , 542710 , 527350 , 433656 , 457622 , 517879 , 523888 , 575632 , 589968 , 413749 , 519494 , 550606 , 559580 , 564630 , 567071 , 719806 , 452885 , 584366 , 632576 , 814829 , 491405 , 566324 , 559930 , 613356 , 553477 , 530025 , 490608 , 591855 , 605661 , 434276 , 523012 , 470985 , 700670 , 476216 , 532747 , 527268 , 537210 , 605492 );
Copy
4
3.00 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
413749
433656
434276
445028
445103
452885
453786
457049
457622
470026
470985
472190
476216
486454
490608
491405
492837
508605
513253
517594
517879
519494
520687
523012
523888
527268
527350
530025
532747
534346
534359
537210
542710
546648
550606
553477
555024
559580
559930
560508
564144
564630
566324
566363
567071
567820
574745
575632
584305
584366
589968
591855
602556
605492
605661
613356
622346
632576
651845
657484
661702
666428
700670
719806
723502
767025
787371
814829
]
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 (413749 , 433656 , 434276 , 445028 , 445103 , 452885 , 453786 , 457049 , 457622 , 470026 , 470985 , 472190 , 476216 , 486454 , 490608 , 491405 , 492837 , 508605 , 513253 , 517594 , 517879 , 519494 , 520687 , 523012 , 523888 , 527268 , 527350 , 530025 , 532747 , 534346 , 534359 , 537210 , 542710 , 546648 , 550606 , 553477 , 555024 , 559580 , 559930 , 560508 , 564144 , 564630 , 566324 , 566363 , 567071 , 567820 , 574745 , 575632 , 584305 , 584366 , 589968 , 591855 , 602556 , 605492 , 605661 , 613356 , 622346 , 632576 , 651845 , 657484 , 661702 , 666428 , 700670 , 719806 , 723502 , 767025 , 787371 , 814829 );
Copy
5
76.60 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
413749
433656
434276
445028
445103
452885
453786
457049
457622
470026
470985
472190
476216
486454
490608
491405
492837
508605
513253
517594
517879
519494
520687
523012
523888
527268
527350
530025
532747
534346
534359
537210
542710
546648
550606
553477
555024
559580
559930
560508
564144
564630
566324
566363
567071
567820
574745
575632
584305
584366
589968
591855
602556
605492
605661
613356
622346
632576
651845
657484
661702
666428
700670
719806
723502
767025
787371
814829
]
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 (413749 , 433656 , 434276 , 445028 , 445103 , 452885 , 453786 , 457049 , 457622 , 470026 , 470985 , 472190 , 476216 , 486454 , 490608 , 491405 , 492837 , 508605 , 513253 , 517594 , 517879 , 519494 , 520687 , 523012 , 523888 , 527268 , 527350 , 530025 , 532747 , 534346 , 534359 , 537210 , 542710 , 546648 , 550606 , 553477 , 555024 , 559580 , 559930 , 560508 , 564144 , 564630 , 566324 , 566363 , 567071 , 567820 , 574745 , 575632 , 584305 , 584366 , 589968 , 591855 , 602556 , 605492 , 605661 , 613356 , 622346 , 632576 , 651845 , 657484 , 661702 , 666428 , 700670 , 719806 , 723502 , 767025 , 787371 , 814829 );
Copy