3
12.18 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
646771
650330
600312
632618
631163
645276
633718
600271
531115
540400
542583
646896
648499
631195
640763
417384
450563
532995
533373
651631
648254
648853
634193
635224
639810
634774
532245
537863
533369
636320
635215
636308
531215
532772
540405
628399
630526
639748
601535
393585
448210
569238
644916
532812
599835
532655
536744
533363
648241
639334
540398
544825
696582
587311
634543
637729
530696
565245
634115
638298
640813
536402
532755
533746
647344
466404
533563
545611
695123
545437
600257
531201
533557
]
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 (646771 , 650330 , 600312 , 632618 , 631163 , 645276 , 633718 , 600271 , 531115 , 540400 , 542583 , 646896 , 648499 , 631195 , 640763 , 417384 , 450563 , 532995 , 533373 , 651631 , 648254 , 648853 , 634193 , 635224 , 639810 , 634774 , 532245 , 537863 , 533369 , 636320 , 635215 , 636308 , 531215 , 532772 , 540405 , 628399 , 630526 , 639748 , 601535 , 393585 , 448210 , 569238 , 644916 , 532812 , 599835 , 532655 , 536744 , 533363 , 648241 , 639334 , 540398 , 544825 , 696582 , 587311 , 634543 , 637729 , 530696 , 565245 , 634115 , 638298 , 640813 , 536402 , 532755 , 533746 , 647344 , 466404 , 533563 , 545611 , 695123 , 545437 , 600257 , 531201 , 533557 );
Copy
4
2.53 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
393585
417384
448210
450563
466404
530696
531115
531201
531215
532245
532655
532755
532772
532812
532995
533363
533369
533373
533557
533563
533746
536402
536744
537863
540398
540400
540405
542583
544825
545437
545611
565245
569238
587311
599835
600257
600271
600312
601535
628399
630526
631163
631195
632618
633718
634115
634193
634543
634774
635215
635224
636308
636320
637729
638298
639334
639748
639810
640763
640813
644916
645276
646771
646896
647344
648241
648254
648499
648853
650330
651631
695123
696582
]
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 (393585 , 417384 , 448210 , 450563 , 466404 , 530696 , 531115 , 531201 , 531215 , 532245 , 532655 , 532755 , 532772 , 532812 , 532995 , 533363 , 533369 , 533373 , 533557 , 533563 , 533746 , 536402 , 536744 , 537863 , 540398 , 540400 , 540405 , 542583 , 544825 , 545437 , 545611 , 565245 , 569238 , 587311 , 599835 , 600257 , 600271 , 600312 , 601535 , 628399 , 630526 , 631163 , 631195 , 632618 , 633718 , 634115 , 634193 , 634543 , 634774 , 635215 , 635224 , 636308 , 636320 , 637729 , 638298 , 639334 , 639748 , 639810 , 640763 , 640813 , 644916 , 645276 , 646771 , 646896 , 647344 , 648241 , 648254 , 648499 , 648853 , 650330 , 651631 , 695123 , 696582 );
Copy
5
103.91 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
393585
417384
448210
450563
466404
530696
531115
531201
531215
532245
532655
532755
532772
532812
532995
533363
533369
533373
533557
533563
533746
536402
536744
537863
540398
540400
540405
542583
544825
545437
545611
565245
569238
587311
599835
600257
600271
600312
601535
628399
630526
631163
631195
632618
633718
634115
634193
634543
634774
635215
635224
636308
636320
637729
638298
639334
639748
639810
640763
640813
644916
645276
646771
646896
647344
648241
648254
648499
648853
650330
651631
695123
696582
]
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 (393585 , 417384 , 448210 , 450563 , 466404 , 530696 , 531115 , 531201 , 531215 , 532245 , 532655 , 532755 , 532772 , 532812 , 532995 , 533363 , 533369 , 533373 , 533557 , 533563 , 533746 , 536402 , 536744 , 537863 , 540398 , 540400 , 540405 , 542583 , 544825 , 545437 , 545611 , 565245 , 569238 , 587311 , 599835 , 600257 , 600271 , 600312 , 601535 , 628399 , 630526 , 631163 , 631195 , 632618 , 633718 , 634115 , 634193 , 634543 , 634774 , 635215 , 635224 , 636308 , 636320 , 637729 , 638298 , 639334 , 639748 , 639810 , 640763 , 640813 , 644916 , 645276 , 646771 , 646896 , 647344 , 648241 , 648254 , 648499 , 648853 , 650330 , 651631 , 695123 , 696582 );
Copy