3
217.53 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
621074
769071
519925
513329
443748
466263
473994
528452
460743
519309
484739
603973
443184
486345
558617
568325
545860
562423
463976
460599
439682
506051
486355
463973
469774
518003
803541
576643
473249
454563
486915
424410
460740
484362
484639
467034
502559
443741
467626
460750
454170
490262
485697
439801
425749
470772
454240
466207
462076
489299
504787
512529
494043
487206
466094
484365
552307
454274
512516
485777
725314
466097
484644
524029
470596
484727
524882
549233
]
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 (621074 , 769071 , 519925 , 513329 , 443748 , 466263 , 473994 , 528452 , 460743 , 519309 , 484739 , 603973 , 443184 , 486345 , 558617 , 568325 , 545860 , 562423 , 463976 , 460599 , 439682 , 506051 , 486355 , 463973 , 469774 , 518003 , 803541 , 576643 , 473249 , 454563 , 486915 , 424410 , 460740 , 484362 , 484639 , 467034 , 502559 , 443741 , 467626 , 460750 , 454170 , 490262 , 485697 , 439801 , 425749 , 470772 , 454240 , 466207 , 462076 , 489299 , 504787 , 512529 , 494043 , 487206 , 466094 , 484365 , 552307 , 454274 , 512516 , 485777 , 725314 , 466097 , 484644 , 524029 , 470596 , 484727 , 524882 , 549233 );
Copy
4
2.40 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
424410
425749
439682
439801
443184
443741
443748
454170
454240
454274
454563
460599
460740
460743
460750
462076
463973
463976
466094
466097
466207
466263
467034
467626
469774
470596
470772
473249
473994
484362
484365
484639
484644
484727
484739
485697
485777
486345
486355
486915
487206
489299
490262
494043
502559
504787
506051
512516
512529
513329
518003
519309
519925
524029
524882
528452
545860
549233
552307
558617
562423
568325
576643
603973
621074
725314
769071
803541
]
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 (424410 , 425749 , 439682 , 439801 , 443184 , 443741 , 443748 , 454170 , 454240 , 454274 , 454563 , 460599 , 460740 , 460743 , 460750 , 462076 , 463973 , 463976 , 466094 , 466097 , 466207 , 466263 , 467034 , 467626 , 469774 , 470596 , 470772 , 473249 , 473994 , 484362 , 484365 , 484639 , 484644 , 484727 , 484739 , 485697 , 485777 , 486345 , 486355 , 486915 , 487206 , 489299 , 490262 , 494043 , 502559 , 504787 , 506051 , 512516 , 512529 , 513329 , 518003 , 519309 , 519925 , 524029 , 524882 , 528452 , 545860 , 549233 , 552307 , 558617 , 562423 , 568325 , 576643 , 603973 , 621074 , 725314 , 769071 , 803541 );
Copy
5
102.63 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
424410
425749
439682
439801
443184
443741
443748
454170
454240
454274
454563
460599
460740
460743
460750
462076
463973
463976
466094
466097
466207
466263
467034
467626
469774
470596
470772
473249
473994
484362
484365
484639
484644
484727
484739
485697
485777
486345
486355
486915
487206
489299
490262
494043
502559
504787
506051
512516
512529
513329
518003
519309
519925
524029
524882
528452
545860
549233
552307
558617
562423
568325
576643
603973
621074
725314
769071
803541
]
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 (424410 , 425749 , 439682 , 439801 , 443184 , 443741 , 443748 , 454170 , 454240 , 454274 , 454563 , 460599 , 460740 , 460743 , 460750 , 462076 , 463973 , 463976 , 466094 , 466097 , 466207 , 466263 , 467034 , 467626 , 469774 , 470596 , 470772 , 473249 , 473994 , 484362 , 484365 , 484639 , 484644 , 484727 , 484739 , 485697 , 485777 , 486345 , 486355 , 486915 , 487206 , 489299 , 490262 , 494043 , 502559 , 504787 , 506051 , 512516 , 512529 , 513329 , 518003 , 519309 , 519925 , 524029 , 524882 , 528452 , 545860 , 549233 , 552307 , 558617 , 562423 , 568325 , 576643 , 603973 , 621074 , 725314 , 769071 , 803541 );
Copy