3
12.46 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
499476
466939
418914
569631
610677
403375
452849
461115
480764
564601
663350
632734
591115
801283
744853
485684
584610
510367
772126
777161
528303
596504
358942
745062
426559
423263
390165
542817
575797
472938
510244
574986
460226
452207
636371
705890
586644
488409
813579
404568
624110
596809
455485
512537
492533
559953
549026
431019
463619
566086
520427
505365
575715
497495
444316
526369
558411
522398
528395
562136
472910
521206
570616
487648
430556
583533
609610
408675
490822
591056
]
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 (499476 , 466939 , 418914 , 569631 , 610677 , 403375 , 452849 , 461115 , 480764 , 564601 , 663350 , 632734 , 591115 , 801283 , 744853 , 485684 , 584610 , 510367 , 772126 , 777161 , 528303 , 596504 , 358942 , 745062 , 426559 , 423263 , 390165 , 542817 , 575797 , 472938 , 510244 , 574986 , 460226 , 452207 , 636371 , 705890 , 586644 , 488409 , 813579 , 404568 , 624110 , 596809 , 455485 , 512537 , 492533 , 559953 , 549026 , 431019 , 463619 , 566086 , 520427 , 505365 , 575715 , 497495 , 444316 , 526369 , 558411 , 522398 , 528395 , 562136 , 472910 , 521206 , 570616 , 487648 , 430556 , 583533 , 609610 , 408675 , 490822 , 591056 );
Copy
4
2.61 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
358942
390165
403375
404568
408675
418914
423263
426559
430556
431019
444316
452207
452849
455485
460226
461115
463619
466939
472910
472938
480764
485684
487648
488409
490822
492533
497495
499476
505365
510244
510367
512537
520427
521206
522398
526369
528303
528395
542817
549026
558411
559953
562136
564601
566086
569631
570616
574986
575715
575797
583533
584610
586644
591056
591115
596504
596809
609610
610677
624110
632734
636371
663350
705890
744853
745062
772126
777161
801283
813579
]
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 (358942 , 390165 , 403375 , 404568 , 408675 , 418914 , 423263 , 426559 , 430556 , 431019 , 444316 , 452207 , 452849 , 455485 , 460226 , 461115 , 463619 , 466939 , 472910 , 472938 , 480764 , 485684 , 487648 , 488409 , 490822 , 492533 , 497495 , 499476 , 505365 , 510244 , 510367 , 512537 , 520427 , 521206 , 522398 , 526369 , 528303 , 528395 , 542817 , 549026 , 558411 , 559953 , 562136 , 564601 , 566086 , 569631 , 570616 , 574986 , 575715 , 575797 , 583533 , 584610 , 586644 , 591056 , 591115 , 596504 , 596809 , 609610 , 610677 , 624110 , 632734 , 636371 , 663350 , 705890 , 744853 , 745062 , 772126 , 777161 , 801283 , 813579 );
Copy
5
103.62 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
358942
390165
403375
404568
408675
418914
423263
426559
430556
431019
444316
452207
452849
455485
460226
461115
463619
466939
472910
472938
480764
485684
487648
488409
490822
492533
497495
499476
505365
510244
510367
512537
520427
521206
522398
526369
528303
528395
542817
549026
558411
559953
562136
564601
566086
569631
570616
574986
575715
575797
583533
584610
586644
591056
591115
596504
596809
609610
610677
624110
632734
636371
663350
705890
744853
745062
772126
777161
801283
813579
]
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 (358942 , 390165 , 403375 , 404568 , 408675 , 418914 , 423263 , 426559 , 430556 , 431019 , 444316 , 452207 , 452849 , 455485 , 460226 , 461115 , 463619 , 466939 , 472910 , 472938 , 480764 , 485684 , 487648 , 488409 , 490822 , 492533 , 497495 , 499476 , 505365 , 510244 , 510367 , 512537 , 520427 , 521206 , 522398 , 526369 , 528303 , 528395 , 542817 , 549026 , 558411 , 559953 , 562136 , 564601 , 566086 , 569631 , 570616 , 574986 , 575715 , 575797 , 583533 , 584610 , 586644 , 591056 , 591115 , 596504 , 596809 , 609610 , 610677 , 624110 , 632734 , 636371 , 663350 , 705890 , 744853 , 745062 , 772126 , 777161 , 801283 , 813579 );
Copy