3
11.77 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
742727
523013
520767
641126
672937
664453
672925
385021
784419
529574
825514
628087
534529
722382
786873
749067
510807
634114
752697
441925
505800
575601
656626
542701
514876
541326
594340
443106
541325
513794
545223
551494
415294
453213
510783
669025
621960
403582
429600
574376
428174
502242
542709
441853
471124
447575
500335
521145
482291
578406
442117
575366
679717
479839
656931
692732
530272
662022
457804
417400
784488
639712
514800
436178
632563
]
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 (742727 , 523013 , 520767 , 641126 , 672937 , 664453 , 672925 , 385021 , 784419 , 529574 , 825514 , 628087 , 534529 , 722382 , 786873 , 749067 , 510807 , 634114 , 752697 , 441925 , 505800 , 575601 , 656626 , 542701 , 514876 , 541326 , 594340 , 443106 , 541325 , 513794 , 545223 , 551494 , 415294 , 453213 , 510783 , 669025 , 621960 , 403582 , 429600 , 574376 , 428174 , 502242 , 542709 , 441853 , 471124 , 447575 , 500335 , 521145 , 482291 , 578406 , 442117 , 575366 , 679717 , 479839 , 656931 , 692732 , 530272 , 662022 , 457804 , 417400 , 784488 , 639712 , 514800 , 436178 , 632563 );
Copy
4
2.76 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
385021
403582
415294
417400
428174
429600
436178
441853
441925
442117
443106
447575
453213
457804
471124
479839
482291
500335
502242
505800
510783
510807
513794
514800
514876
520767
521145
523013
529574
530272
534529
541325
541326
542701
542709
545223
551494
574376
575366
575601
578406
594340
621960
628087
632563
634114
639712
641126
656626
656931
662022
664453
669025
672925
672937
679717
692732
722382
742727
749067
752697
784419
784488
786873
825514
]
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 (385021 , 403582 , 415294 , 417400 , 428174 , 429600 , 436178 , 441853 , 441925 , 442117 , 443106 , 447575 , 453213 , 457804 , 471124 , 479839 , 482291 , 500335 , 502242 , 505800 , 510783 , 510807 , 513794 , 514800 , 514876 , 520767 , 521145 , 523013 , 529574 , 530272 , 534529 , 541325 , 541326 , 542701 , 542709 , 545223 , 551494 , 574376 , 575366 , 575601 , 578406 , 594340 , 621960 , 628087 , 632563 , 634114 , 639712 , 641126 , 656626 , 656931 , 662022 , 664453 , 669025 , 672925 , 672937 , 679717 , 692732 , 722382 , 742727 , 749067 , 752697 , 784419 , 784488 , 786873 , 825514 );
Copy
5
75.90 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
385021
403582
415294
417400
428174
429600
436178
441853
441925
442117
443106
447575
453213
457804
471124
479839
482291
500335
502242
505800
510783
510807
513794
514800
514876
520767
521145
523013
529574
530272
534529
541325
541326
542701
542709
545223
551494
574376
575366
575601
578406
594340
621960
628087
632563
634114
639712
641126
656626
656931
662022
664453
669025
672925
672937
679717
692732
722382
742727
749067
752697
784419
784488
786873
825514
]
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 (385021 , 403582 , 415294 , 417400 , 428174 , 429600 , 436178 , 441853 , 441925 , 442117 , 443106 , 447575 , 453213 , 457804 , 471124 , 479839 , 482291 , 500335 , 502242 , 505800 , 510783 , 510807 , 513794 , 514800 , 514876 , 520767 , 521145 , 523013 , 529574 , 530272 , 534529 , 541325 , 541326 , 542701 , 542709 , 545223 , 551494 , 574376 , 575366 , 575601 , 578406 , 594340 , 621960 , 628087 , 632563 , 634114 , 639712 , 641126 , 656626 , 656931 , 662022 , 664453 , 669025 , 672925 , 672937 , 679717 , 692732 , 722382 , 742727 , 749067 , 752697 , 784419 , 784488 , 786873 , 825514 );
Copy