3
13.20 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
564162
602506
620309
637021
631200
634790
642041
632690
632708
633796
415112
433888
420692
442841
497757
537337
426153
525588
415109
532738
537204
532834
545341
668525
647830
666902
676641
567046
642025
599969
633742
634153
628396
633732
639292
523857
408644
554292
537184
537648
666895
567837
630764
639760
632978
461375
539336
530762
585798
695181
707391
675000
545469
597491
628371
603907
444356
602647
517836
550829
666850
545355
628333
414301
]
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 (564162 , 602506 , 620309 , 637021 , 631200 , 634790 , 642041 , 632690 , 632708 , 633796 , 415112 , 433888 , 420692 , 442841 , 497757 , 537337 , 426153 , 525588 , 415109 , 532738 , 537204 , 532834 , 545341 , 668525 , 647830 , 666902 , 676641 , 567046 , 642025 , 599969 , 633742 , 634153 , 628396 , 633732 , 639292 , 523857 , 408644 , 554292 , 537184 , 537648 , 666895 , 567837 , 630764 , 639760 , 632978 , 461375 , 539336 , 530762 , 585798 , 695181 , 707391 , 675000 , 545469 , 597491 , 628371 , 603907 , 444356 , 602647 , 517836 , 550829 , 666850 , 545355 , 628333 , 414301 );
Copy
4
2.82 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
408644
414301
415109
415112
420692
426153
433888
442841
444356
461375
497757
517836
523857
525588
530762
532738
532834
537184
537204
537337
537648
539336
545341
545355
545469
550829
554292
564162
567046
567837
585798
597491
599969
602506
602647
603907
620309
628333
628371
628396
630764
631200
632690
632708
632978
633732
633742
633796
634153
634790
637021
639292
639760
642025
642041
647830
666850
666895
666902
668525
675000
676641
695181
707391
]
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 (408644 , 414301 , 415109 , 415112 , 420692 , 426153 , 433888 , 442841 , 444356 , 461375 , 497757 , 517836 , 523857 , 525588 , 530762 , 532738 , 532834 , 537184 , 537204 , 537337 , 537648 , 539336 , 545341 , 545355 , 545469 , 550829 , 554292 , 564162 , 567046 , 567837 , 585798 , 597491 , 599969 , 602506 , 602647 , 603907 , 620309 , 628333 , 628371 , 628396 , 630764 , 631200 , 632690 , 632708 , 632978 , 633732 , 633742 , 633796 , 634153 , 634790 , 637021 , 639292 , 639760 , 642025 , 642041 , 647830 , 666850 , 666895 , 666902 , 668525 , 675000 , 676641 , 695181 , 707391 );
Copy
5
75.33 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
408644
414301
415109
415112
420692
426153
433888
442841
444356
461375
497757
517836
523857
525588
530762
532738
532834
537184
537204
537337
537648
539336
545341
545355
545469
550829
554292
564162
567046
567837
585798
597491
599969
602506
602647
603907
620309
628333
628371
628396
630764
631200
632690
632708
632978
633732
633742
633796
634153
634790
637021
639292
639760
642025
642041
647830
666850
666895
666902
668525
675000
676641
695181
707391
]
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 (408644 , 414301 , 415109 , 415112 , 420692 , 426153 , 433888 , 442841 , 444356 , 461375 , 497757 , 517836 , 523857 , 525588 , 530762 , 532738 , 532834 , 537184 , 537204 , 537337 , 537648 , 539336 , 545341 , 545355 , 545469 , 550829 , 554292 , 564162 , 567046 , 567837 , 585798 , 597491 , 599969 , 602506 , 602647 , 603907 , 620309 , 628333 , 628371 , 628396 , 630764 , 631200 , 632690 , 632708 , 632978 , 633732 , 633742 , 633796 , 634153 , 634790 , 637021 , 639292 , 639760 , 642025 , 642041 , 647830 , 666850 , 666895 , 666902 , 668525 , 675000 , 676641 , 695181 , 707391 );
Copy