4
8.11 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
472246
778863
547322
756313
574202
393473
566569
542938
549347
547309
549994
532050
549957
522375
581386
649956
676608
800629
719062
539597
572568
786031
703097
707318
789659
724241
547552
547328
719097
588763
755460
577364
572765
592475
806850
772940
576645
576706
561951
566857
801907
542969
576649
770799
605345
426218
551919
415524
499352
788935
387490
541833
476094
544472
436690
633972
521353
576631
478596
629296
620157
586591
]
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 (472246 , 778863 , 547322 , 756313 , 574202 , 393473 , 566569 , 542938 , 549347 , 547309 , 549994 , 532050 , 549957 , 522375 , 581386 , 649956 , 676608 , 800629 , 719062 , 539597 , 572568 , 786031 , 703097 , 707318 , 789659 , 724241 , 547552 , 547328 , 719097 , 588763 , 755460 , 577364 , 572765 , 592475 , 806850 , 772940 , 576645 , 576706 , 561951 , 566857 , 801907 , 542969 , 576649 , 770799 , 605345 , 426218 , 551919 , 415524 , 499352 , 788935 , 387490 , 541833 , 476094 , 544472 , 436690 , 633972 , 521353 , 576631 , 478596 , 629296 , 620157 , 586591 );
Copy
5
2.41 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
387490
393473
415524
426218
436690
472246
476094
478596
499352
521353
522375
532050
539597
541833
542938
542969
544472
547309
547322
547328
547552
549347
549957
549994
551919
561951
566569
566857
572568
572765
574202
576631
576645
576649
576706
577364
581386
586591
588763
592475
605345
620157
629296
633972
649956
676608
703097
707318
719062
719097
724241
755460
756313
770799
772940
778863
786031
788935
789659
800629
801907
806850
]
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 (387490 , 393473 , 415524 , 426218 , 436690 , 472246 , 476094 , 478596 , 499352 , 521353 , 522375 , 532050 , 539597 , 541833 , 542938 , 542969 , 544472 , 547309 , 547322 , 547328 , 547552 , 549347 , 549957 , 549994 , 551919 , 561951 , 566569 , 566857 , 572568 , 572765 , 574202 , 576631 , 576645 , 576649 , 576706 , 577364 , 581386 , 586591 , 588763 , 592475 , 605345 , 620157 , 629296 , 633972 , 649956 , 676608 , 703097 , 707318 , 719062 , 719097 , 724241 , 755460 , 756313 , 770799 , 772940 , 778863 , 786031 , 788935 , 789659 , 800629 , 801907 , 806850 );
Copy
6
82.24 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
387490
393473
415524
426218
436690
472246
476094
478596
499352
521353
522375
532050
539597
541833
542938
542969
544472
547309
547322
547328
547552
549347
549957
549994
551919
561951
566569
566857
572568
572765
574202
576631
576645
576649
576706
577364
581386
586591
588763
592475
605345
620157
629296
633972
649956
676608
703097
707318
719062
719097
724241
755460
756313
770799
772940
778863
786031
788935
789659
800629
801907
806850
]
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 (387490 , 393473 , 415524 , 426218 , 436690 , 472246 , 476094 , 478596 , 499352 , 521353 , 522375 , 532050 , 539597 , 541833 , 542938 , 542969 , 544472 , 547309 , 547322 , 547328 , 547552 , 549347 , 549957 , 549994 , 551919 , 561951 , 566569 , 566857 , 572568 , 572765 , 574202 , 576631 , 576645 , 576649 , 576706 , 577364 , 581386 , 586591 , 588763 , 592475 , 605345 , 620157 , 629296 , 633972 , 649956 , 676608 , 703097 , 707318 , 719062 , 719097 , 724241 , 755460 , 756313 , 770799 , 772940 , 778863 , 786031 , 788935 , 789659 , 800629 , 801907 , 806850 );
Copy