7
11.07 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
565169
565166
617350
477028
487712
395562
797733
523537
396654
565172
760936
714463
395824
415658
401137
395706
475410
797734
526162
509940
395642
393562
392623
760958
408283
784285
390402
395596
477859
472641
558421
519554
395856
395989
516449
395724
395723
395552
382249
519569
396020
395597
578408
465976
395702
396024
569238
623132
605521
565162
466690
395999
395984
395981
395978
395975
395973
395968
395946
395941
395935
395932
395931
395929
395727
395719
395628
393672
393659
]
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 (565169 , 565166 , 617350 , 477028 , 487712 , 395562 , 797733 , 523537 , 396654 , 565172 , 760936 , 714463 , 395824 , 415658 , 401137 , 395706 , 475410 , 797734 , 526162 , 509940 , 395642 , 393562 , 392623 , 760958 , 408283 , 784285 , 390402 , 395596 , 477859 , 472641 , 558421 , 519554 , 395856 , 395989 , 516449 , 395724 , 395723 , 395552 , 382249 , 519569 , 396020 , 395597 , 578408 , 465976 , 395702 , 396024 , 569238 , 623132 , 605521 , 565162 , 466690 , 395999 , 395984 , 395981 , 395978 , 395975 , 395973 , 395968 , 395946 , 395941 , 395935 , 395932 , 395931 , 395929 , 395727 , 395719 , 395628 , 393672 , 393659 );
Copy
8
2.38 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
382249
390402
392623
393562
393659
393672
395552
395562
395596
395597
395628
395642
395702
395706
395719
395723
395724
395727
395824
395856
395929
395931
395932
395935
395941
395946
395968
395973
395975
395978
395981
395984
395989
395999
396020
396024
396654
401137
408283
415658
465976
466690
472641
475410
477028
477859
487712
509940
516449
519554
519569
523537
526162
558421
565162
565166
565169
565172
569238
578408
605521
617350
623132
714463
760936
760958
784285
797733
797734
]
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 (382249 , 390402 , 392623 , 393562 , 393659 , 393672 , 395552 , 395562 , 395596 , 395597 , 395628 , 395642 , 395702 , 395706 , 395719 , 395723 , 395724 , 395727 , 395824 , 395856 , 395929 , 395931 , 395932 , 395935 , 395941 , 395946 , 395968 , 395973 , 395975 , 395978 , 395981 , 395984 , 395989 , 395999 , 396020 , 396024 , 396654 , 401137 , 408283 , 415658 , 465976 , 466690 , 472641 , 475410 , 477028 , 477859 , 487712 , 509940 , 516449 , 519554 , 519569 , 523537 , 526162 , 558421 , 565162 , 565166 , 565169 , 565172 , 569238 , 578408 , 605521 , 617350 , 623132 , 714463 , 760936 , 760958 , 784285 , 797733 , 797734 );
Copy
9
88.09 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
382249
390402
392623
393562
393659
393672
395552
395562
395596
395597
395628
395642
395702
395706
395719
395723
395724
395727
395824
395856
395929
395931
395932
395935
395941
395946
395968
395973
395975
395978
395981
395984
395989
395999
396020
396024
396654
401137
408283
415658
465976
466690
472641
475410
477028
477859
487712
509940
516449
519554
519569
523537
526162
558421
565162
565166
565169
565172
569238
578408
605521
617350
623132
714463
760936
760958
784285
797733
797734
]
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 (382249 , 390402 , 392623 , 393562 , 393659 , 393672 , 395552 , 395562 , 395596 , 395597 , 395628 , 395642 , 395702 , 395706 , 395719 , 395723 , 395724 , 395727 , 395824 , 395856 , 395929 , 395931 , 395932 , 395935 , 395941 , 395946 , 395968 , 395973 , 395975 , 395978 , 395981 , 395984 , 395989 , 395999 , 396020 , 396024 , 396654 , 401137 , 408283 , 415658 , 465976 , 466690 , 472641 , 475410 , 477028 , 477859 , 487712 , 509940 , 516449 , 519554 , 519569 , 523537 , 526162 , 558421 , 565162 , 565166 , 565169 , 565172 , 569238 , 578408 , 605521 , 617350 , 623132 , 714463 , 760936 , 760958 , 784285 , 797733 , 797734 );
Copy