3
224.01 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
648924
700996
758226
629934
427437
637123
516073
530024
483543
815370
533016
679775
634512
615918
463815
530495
537648
643103
540559
668505
637442
572339
637087
637147
785059
628082
540333
646920
680174
539203
529854
630511
539938
537236
650174
600354
443476
634163
634155
642777
640806
642053
527568
396688
619965
600011
642775
642016
521428
523924
533512
434275
533517
531116
565249
637017
631193
628117
533747
534229
545604
637121
628091
523357
500292
625660
628126
524676
423480
633736
461454
595761
504450
603009
]
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 (648924 , 700996 , 758226 , 629934 , 427437 , 637123 , 516073 , 530024 , 483543 , 815370 , 533016 , 679775 , 634512 , 615918 , 463815 , 530495 , 537648 , 643103 , 540559 , 668505 , 637442 , 572339 , 637087 , 637147 , 785059 , 628082 , 540333 , 646920 , 680174 , 539203 , 529854 , 630511 , 539938 , 537236 , 650174 , 600354 , 443476 , 634163 , 634155 , 642777 , 640806 , 642053 , 527568 , 396688 , 619965 , 600011 , 642775 , 642016 , 521428 , 523924 , 533512 , 434275 , 533517 , 531116 , 565249 , 637017 , 631193 , 628117 , 533747 , 534229 , 545604 , 637121 , 628091 , 523357 , 500292 , 625660 , 628126 , 524676 , 423480 , 633736 , 461454 , 595761 , 504450 , 603009 );
Copy
4
2.91 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
396688
423480
427437
434275
443476
461454
463815
483543
500292
504450
516073
521428
523357
523924
524676
527568
529854
530024
530495
531116
533016
533512
533517
533747
534229
537236
537648
539203
539938
540333
540559
545604
565249
572339
595761
600011
600354
603009
615918
619965
625660
628082
628091
628117
628126
629934
630511
631193
633736
634155
634163
634512
637017
637087
637121
637123
637147
637442
640806
642016
642053
642775
642777
643103
646920
648924
650174
668505
679775
680174
700996
758226
785059
815370
]
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 (396688 , 423480 , 427437 , 434275 , 443476 , 461454 , 463815 , 483543 , 500292 , 504450 , 516073 , 521428 , 523357 , 523924 , 524676 , 527568 , 529854 , 530024 , 530495 , 531116 , 533016 , 533512 , 533517 , 533747 , 534229 , 537236 , 537648 , 539203 , 539938 , 540333 , 540559 , 545604 , 565249 , 572339 , 595761 , 600011 , 600354 , 603009 , 615918 , 619965 , 625660 , 628082 , 628091 , 628117 , 628126 , 629934 , 630511 , 631193 , 633736 , 634155 , 634163 , 634512 , 637017 , 637087 , 637121 , 637123 , 637147 , 637442 , 640806 , 642016 , 642053 , 642775 , 642777 , 643103 , 646920 , 648924 , 650174 , 668505 , 679775 , 680174 , 700996 , 758226 , 785059 , 815370 );
Copy
5
81.00 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
396688
423480
427437
434275
443476
461454
463815
483543
500292
504450
516073
521428
523357
523924
524676
527568
529854
530024
530495
531116
533016
533512
533517
533747
534229
537236
537648
539203
539938
540333
540559
545604
565249
572339
595761
600011
600354
603009
615918
619965
625660
628082
628091
628117
628126
629934
630511
631193
633736
634155
634163
634512
637017
637087
637121
637123
637147
637442
640806
642016
642053
642775
642777
643103
646920
648924
650174
668505
679775
680174
700996
758226
785059
815370
]
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 (396688 , 423480 , 427437 , 434275 , 443476 , 461454 , 463815 , 483543 , 500292 , 504450 , 516073 , 521428 , 523357 , 523924 , 524676 , 527568 , 529854 , 530024 , 530495 , 531116 , 533016 , 533512 , 533517 , 533747 , 534229 , 537236 , 537648 , 539203 , 539938 , 540333 , 540559 , 545604 , 565249 , 572339 , 595761 , 600011 , 600354 , 603009 , 615918 , 619965 , 625660 , 628082 , 628091 , 628117 , 628126 , 629934 , 630511 , 631193 , 633736 , 634155 , 634163 , 634512 , 637017 , 637087 , 637121 , 637123 , 637147 , 637442 , 640806 , 642016 , 642053 , 642775 , 642777 , 643103 , 646920 , 648924 , 650174 , 668505 , 679775 , 680174 , 700996 , 758226 , 785059 , 815370 );
Copy