3
12.99 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
518982
715089
552535
724139
549844
549823
412838
526526
523197
535882
625780
723091
543745
465551
443883
381921
678916
535439
503241
561021
444917
508721
473475
602617
429523
530110
521367
459492
742651
447948
435391
474914
500896
507291
454081
415874
465552
482094
509988
450281
457428
467118
591349
496802
444916
650614
452284
466007
525501
454585
457473
544801
445868
455685
453409
443493
518131
569132
458051
592651
502793
615978
510209
451108
]
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 (518982 , 715089 , 552535 , 724139 , 549844 , 549823 , 412838 , 526526 , 523197 , 535882 , 625780 , 723091 , 543745 , 465551 , 443883 , 381921 , 678916 , 535439 , 503241 , 561021 , 444917 , 508721 , 473475 , 602617 , 429523 , 530110 , 521367 , 459492 , 742651 , 447948 , 435391 , 474914 , 500896 , 507291 , 454081 , 415874 , 465552 , 482094 , 509988 , 450281 , 457428 , 467118 , 591349 , 496802 , 444916 , 650614 , 452284 , 466007 , 525501 , 454585 , 457473 , 544801 , 445868 , 455685 , 453409 , 443493 , 518131 , 569132 , 458051 , 592651 , 502793 , 615978 , 510209 , 451108 );
Copy
4
3.49 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
381921
412838
415874
429523
435391
443493
443883
444916
444917
445868
447948
450281
451108
452284
453409
454081
454585
455685
457428
457473
458051
459492
465551
465552
466007
467118
473475
474914
482094
496802
500896
502793
503241
507291
508721
509988
510209
518131
518982
521367
523197
525501
526526
530110
535439
535882
543745
544801
549823
549844
552535
561021
569132
591349
592651
602617
615978
625780
650614
678916
715089
723091
724139
742651
]
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 (381921 , 412838 , 415874 , 429523 , 435391 , 443493 , 443883 , 444916 , 444917 , 445868 , 447948 , 450281 , 451108 , 452284 , 453409 , 454081 , 454585 , 455685 , 457428 , 457473 , 458051 , 459492 , 465551 , 465552 , 466007 , 467118 , 473475 , 474914 , 482094 , 496802 , 500896 , 502793 , 503241 , 507291 , 508721 , 509988 , 510209 , 518131 , 518982 , 521367 , 523197 , 525501 , 526526 , 530110 , 535439 , 535882 , 543745 , 544801 , 549823 , 549844 , 552535 , 561021 , 569132 , 591349 , 592651 , 602617 , 615978 , 625780 , 650614 , 678916 , 715089 , 723091 , 724139 , 742651 );
Copy
5
87.31 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
381921
412838
415874
429523
435391
443493
443883
444916
444917
445868
447948
450281
451108
452284
453409
454081
454585
455685
457428
457473
458051
459492
465551
465552
466007
467118
473475
474914
482094
496802
500896
502793
503241
507291
508721
509988
510209
518131
518982
521367
523197
525501
526526
530110
535439
535882
543745
544801
549823
549844
552535
561021
569132
591349
592651
602617
615978
625780
650614
678916
715089
723091
724139
742651
]
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 (381921 , 412838 , 415874 , 429523 , 435391 , 443493 , 443883 , 444916 , 444917 , 445868 , 447948 , 450281 , 451108 , 452284 , 453409 , 454081 , 454585 , 455685 , 457428 , 457473 , 458051 , 459492 , 465551 , 465552 , 466007 , 467118 , 473475 , 474914 , 482094 , 496802 , 500896 , 502793 , 503241 , 507291 , 508721 , 509988 , 510209 , 518131 , 518982 , 521367 , 523197 , 525501 , 526526 , 530110 , 535439 , 535882 , 543745 , 544801 , 549823 , 549844 , 552535 , 561021 , 569132 , 591349 , 592651 , 602617 , 615978 , 625780 , 650614 , 678916 , 715089 , 723091 , 724139 , 742651 );
Copy