3
11.17 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
601774
804641
389897
810616
676426
797312
580567
575997
620401
528890
520401
574397
589936
589234
800661
794424
804615
489144
511034
565640
582751
600700
800502
468257
583574
571175
803700
809316
466813
556550
559825
803838
403893
418827
505256
789638
471007
811271
802905
478798
582741
393692
445825
574267
582019
642331
455357
575279
609959
455381
556593
593032
794214
468232
469223
504787
745312
550864
574243
504791
516718
608716
528452
]
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 (601774 , 804641 , 389897 , 810616 , 676426 , 797312 , 580567 , 575997 , 620401 , 528890 , 520401 , 574397 , 589936 , 589234 , 800661 , 794424 , 804615 , 489144 , 511034 , 565640 , 582751 , 600700 , 800502 , 468257 , 583574 , 571175 , 803700 , 809316 , 466813 , 556550 , 559825 , 803838 , 403893 , 418827 , 505256 , 789638 , 471007 , 811271 , 802905 , 478798 , 582741 , 393692 , 445825 , 574267 , 582019 , 642331 , 455357 , 575279 , 609959 , 455381 , 556593 , 593032 , 794214 , 468232 , 469223 , 504787 , 745312 , 550864 , 574243 , 504791 , 516718 , 608716 , 528452 );
Copy
4
2.39 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
389897
393692
403893
418827
445825
455357
455381
466813
468232
468257
469223
471007
478798
489144
504787
504791
505256
511034
516718
520401
528452
528890
550864
556550
556593
559825
565640
571175
574243
574267
574397
575279
575997
580567
582019
582741
582751
583574
589234
589936
593032
600700
601774
608716
609959
620401
642331
676426
745312
789638
794214
794424
797312
800502
800661
802905
803700
803838
804615
804641
809316
810616
811271
]
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 (389897 , 393692 , 403893 , 418827 , 445825 , 455357 , 455381 , 466813 , 468232 , 468257 , 469223 , 471007 , 478798 , 489144 , 504787 , 504791 , 505256 , 511034 , 516718 , 520401 , 528452 , 528890 , 550864 , 556550 , 556593 , 559825 , 565640 , 571175 , 574243 , 574267 , 574397 , 575279 , 575997 , 580567 , 582019 , 582741 , 582751 , 583574 , 589234 , 589936 , 593032 , 600700 , 601774 , 608716 , 609959 , 620401 , 642331 , 676426 , 745312 , 789638 , 794214 , 794424 , 797312 , 800502 , 800661 , 802905 , 803700 , 803838 , 804615 , 804641 , 809316 , 810616 , 811271 );
Copy
5
106.40 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
389897
393692
403893
418827
445825
455357
455381
466813
468232
468257
469223
471007
478798
489144
504787
504791
505256
511034
516718
520401
528452
528890
550864
556550
556593
559825
565640
571175
574243
574267
574397
575279
575997
580567
582019
582741
582751
583574
589234
589936
593032
600700
601774
608716
609959
620401
642331
676426
745312
789638
794214
794424
797312
800502
800661
802905
803700
803838
804615
804641
809316
810616
811271
]
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 (389897 , 393692 , 403893 , 418827 , 445825 , 455357 , 455381 , 466813 , 468232 , 468257 , 469223 , 471007 , 478798 , 489144 , 504787 , 504791 , 505256 , 511034 , 516718 , 520401 , 528452 , 528890 , 550864 , 556550 , 556593 , 559825 , 565640 , 571175 , 574243 , 574267 , 574397 , 575279 , 575997 , 580567 , 582019 , 582741 , 582751 , 583574 , 589234 , 589936 , 593032 , 600700 , 601774 , 608716 , 609959 , 620401 , 642331 , 676426 , 745312 , 789638 , 794214 , 794424 , 797312 , 800502 , 800661 , 802905 , 803700 , 803838 , 804615 , 804641 , 809316 , 810616 , 811271 );
Copy