3
13.44 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
542965
693338
547764
576604
592417
592776
725392
787131
454261
439759
455808
465107
466233
470539
472855
452531
453507
456362
508195
515494
518203
516039
486577
491986
526886
447952
429762
471464
478096
569303
648838
569258
750701
418879
424443
470941
522884
529516
520343
517558
395721
589591
621347
617428
458191
439543
470100
523032
522913
473923
571734
712891
566782
739535
456384
474633
474639
517567
468733
614743
509995
514594
555789
619099
735778
474663
559378
]
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 (542965 , 693338 , 547764 , 576604 , 592417 , 592776 , 725392 , 787131 , 454261 , 439759 , 455808 , 465107 , 466233 , 470539 , 472855 , 452531 , 453507 , 456362 , 508195 , 515494 , 518203 , 516039 , 486577 , 491986 , 526886 , 447952 , 429762 , 471464 , 478096 , 569303 , 648838 , 569258 , 750701 , 418879 , 424443 , 470941 , 522884 , 529516 , 520343 , 517558 , 395721 , 589591 , 621347 , 617428 , 458191 , 439543 , 470100 , 523032 , 522913 , 473923 , 571734 , 712891 , 566782 , 739535 , 456384 , 474633 , 474639 , 517567 , 468733 , 614743 , 509995 , 514594 , 555789 , 619099 , 735778 , 474663 , 559378 );
Copy
4
2.80 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
395721
418879
424443
429762
439543
439759
447952
452531
453507
454261
455808
456362
456384
458191
465107
466233
468733
470100
470539
470941
471464
472855
473923
474633
474639
474663
478096
486577
491986
508195
509995
514594
515494
516039
517558
517567
518203
520343
522884
522913
523032
526886
529516
542965
547764
555789
559378
566782
569258
569303
571734
576604
589591
592417
592776
614743
617428
619099
621347
648838
693338
712891
725392
735778
739535
750701
787131
]
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 (395721 , 418879 , 424443 , 429762 , 439543 , 439759 , 447952 , 452531 , 453507 , 454261 , 455808 , 456362 , 456384 , 458191 , 465107 , 466233 , 468733 , 470100 , 470539 , 470941 , 471464 , 472855 , 473923 , 474633 , 474639 , 474663 , 478096 , 486577 , 491986 , 508195 , 509995 , 514594 , 515494 , 516039 , 517558 , 517567 , 518203 , 520343 , 522884 , 522913 , 523032 , 526886 , 529516 , 542965 , 547764 , 555789 , 559378 , 566782 , 569258 , 569303 , 571734 , 576604 , 589591 , 592417 , 592776 , 614743 , 617428 , 619099 , 621347 , 648838 , 693338 , 712891 , 725392 , 735778 , 739535 , 750701 , 787131 );
Copy
5
90.18 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
395721
418879
424443
429762
439543
439759
447952
452531
453507
454261
455808
456362
456384
458191
465107
466233
468733
470100
470539
470941
471464
472855
473923
474633
474639
474663
478096
486577
491986
508195
509995
514594
515494
516039
517558
517567
518203
520343
522884
522913
523032
526886
529516
542965
547764
555789
559378
566782
569258
569303
571734
576604
589591
592417
592776
614743
617428
619099
621347
648838
693338
712891
725392
735778
739535
750701
787131
]
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 (395721 , 418879 , 424443 , 429762 , 439543 , 439759 , 447952 , 452531 , 453507 , 454261 , 455808 , 456362 , 456384 , 458191 , 465107 , 466233 , 468733 , 470100 , 470539 , 470941 , 471464 , 472855 , 473923 , 474633 , 474639 , 474663 , 478096 , 486577 , 491986 , 508195 , 509995 , 514594 , 515494 , 516039 , 517558 , 517567 , 518203 , 520343 , 522884 , 522913 , 523032 , 526886 , 529516 , 542965 , 547764 , 555789 , 559378 , 566782 , 569258 , 569303 , 571734 , 576604 , 589591 , 592417 , 592776 , 614743 , 617428 , 619099 , 621347 , 648838 , 693338 , 712891 , 725392 , 735778 , 739535 , 750701 , 787131 );
Copy