3
9.69 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
467452
521060
516156
440723
511536
188264
566664
426038
463761
789724
401620
527249
579597
598877
621683
482358
467499
468833
511537
516748
565149
564776
673655
628116
401626
476028
506146
513839
579483
639809
523567
650830
567337
605576
552267
524689
503584
563473
577427
533584
431768
573904
635222
451639
461605
506142
511527
511534
480526
678962
625950
430834
673659
467476
504651
482536
393076
679032
420925
430853
567338
642063
454709
533613
]
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 (467452 , 521060 , 516156 , 440723 , 511536 , 188264 , 566664 , 426038 , 463761 , 789724 , 401620 , 527249 , 579597 , 598877 , 621683 , 482358 , 467499 , 468833 , 511537 , 516748 , 565149 , 564776 , 673655 , 628116 , 401626 , 476028 , 506146 , 513839 , 579483 , 639809 , 523567 , 650830 , 567337 , 605576 , 552267 , 524689 , 503584 , 563473 , 577427 , 533584 , 431768 , 573904 , 635222 , 451639 , 461605 , 506142 , 511527 , 511534 , 480526 , 678962 , 625950 , 430834 , 673659 , 467476 , 504651 , 482536 , 393076 , 679032 , 420925 , 430853 , 567338 , 642063 , 454709 , 533613 );
Copy
4
2.32 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
188264
393076
401620
401626
420925
426038
430834
430853
431768
440723
451639
454709
461605
463761
467452
467476
467499
468833
476028
480526
482358
482536
503584
504651
506142
506146
511527
511534
511536
511537
513839
516156
516748
521060
523567
524689
527249
533584
533613
552267
563473
564776
565149
566664
567337
567338
573904
577427
579483
579597
598877
605576
621683
625950
628116
635222
639809
642063
650830
673655
673659
678962
679032
789724
]
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 (188264 , 393076 , 401620 , 401626 , 420925 , 426038 , 430834 , 430853 , 431768 , 440723 , 451639 , 454709 , 461605 , 463761 , 467452 , 467476 , 467499 , 468833 , 476028 , 480526 , 482358 , 482536 , 503584 , 504651 , 506142 , 506146 , 511527 , 511534 , 511536 , 511537 , 513839 , 516156 , 516748 , 521060 , 523567 , 524689 , 527249 , 533584 , 533613 , 552267 , 563473 , 564776 , 565149 , 566664 , 567337 , 567338 , 573904 , 577427 , 579483 , 579597 , 598877 , 605576 , 621683 , 625950 , 628116 , 635222 , 639809 , 642063 , 650830 , 673655 , 673659 , 678962 , 679032 , 789724 );
Copy
5
73.01 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
188264
393076
401620
401626
420925
426038
430834
430853
431768
440723
451639
454709
461605
463761
467452
467476
467499
468833
476028
480526
482358
482536
503584
504651
506142
506146
511527
511534
511536
511537
513839
516156
516748
521060
523567
524689
527249
533584
533613
552267
563473
564776
565149
566664
567337
567338
573904
577427
579483
579597
598877
605576
621683
625950
628116
635222
639809
642063
650830
673655
673659
678962
679032
789724
]
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 (188264 , 393076 , 401620 , 401626 , 420925 , 426038 , 430834 , 430853 , 431768 , 440723 , 451639 , 454709 , 461605 , 463761 , 467452 , 467476 , 467499 , 468833 , 476028 , 480526 , 482358 , 482536 , 503584 , 504651 , 506142 , 506146 , 511527 , 511534 , 511536 , 511537 , 513839 , 516156 , 516748 , 521060 , 523567 , 524689 , 527249 , 533584 , 533613 , 552267 , 563473 , 564776 , 565149 , 566664 , 567337 , 567338 , 573904 , 577427 , 579483 , 579597 , 598877 , 605576 , 621683 , 625950 , 628116 , 635222 , 639809 , 642063 , 650830 , 673655 , 673659 , 678962 , 679032 , 789724 );
Copy