3
13.48 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
520594
539289
524234
535986
485357
552715
552718
575787
650200
618387
626838
742526
743494
807976
808229
448703
518850
563540
607204
510428
384769
814931
467340
541185
565099
582521
584950
543547
592971
607181
618563
642556
593210
621976
399688
497715
512855
513032
574269
407769
448368
518774
536835
544640
645241
619401
447877
491725
559121
592440
427966
443040
561117
666784
451263
513033
537945
510550
457987
507376
574460
479002
568480
621463
513025
525731
560646
541642
666865
514070
]
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 (520594 , 539289 , 524234 , 535986 , 485357 , 552715 , 552718 , 575787 , 650200 , 618387 , 626838 , 742526 , 743494 , 807976 , 808229 , 448703 , 518850 , 563540 , 607204 , 510428 , 384769 , 814931 , 467340 , 541185 , 565099 , 582521 , 584950 , 543547 , 592971 , 607181 , 618563 , 642556 , 593210 , 621976 , 399688 , 497715 , 512855 , 513032 , 574269 , 407769 , 448368 , 518774 , 536835 , 544640 , 645241 , 619401 , 447877 , 491725 , 559121 , 592440 , 427966 , 443040 , 561117 , 666784 , 451263 , 513033 , 537945 , 510550 , 457987 , 507376 , 574460 , 479002 , 568480 , 621463 , 513025 , 525731 , 560646 , 541642 , 666865 , 514070 );
Copy
4
3.14 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
384769
399688
407769
427966
443040
447877
448368
448703
451263
457987
467340
479002
485357
491725
497715
507376
510428
510550
512855
513025
513032
513033
514070
518774
518850
520594
524234
525731
535986
536835
537945
539289
541185
541642
543547
544640
552715
552718
559121
560646
561117
563540
565099
568480
574269
574460
575787
582521
584950
592440
592971
593210
607181
607204
618387
618563
619401
621463
621976
626838
642556
645241
650200
666784
666865
742526
743494
807976
808229
814931
]
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 (384769 , 399688 , 407769 , 427966 , 443040 , 447877 , 448368 , 448703 , 451263 , 457987 , 467340 , 479002 , 485357 , 491725 , 497715 , 507376 , 510428 , 510550 , 512855 , 513025 , 513032 , 513033 , 514070 , 518774 , 518850 , 520594 , 524234 , 525731 , 535986 , 536835 , 537945 , 539289 , 541185 , 541642 , 543547 , 544640 , 552715 , 552718 , 559121 , 560646 , 561117 , 563540 , 565099 , 568480 , 574269 , 574460 , 575787 , 582521 , 584950 , 592440 , 592971 , 593210 , 607181 , 607204 , 618387 , 618563 , 619401 , 621463 , 621976 , 626838 , 642556 , 645241 , 650200 , 666784 , 666865 , 742526 , 743494 , 807976 , 808229 , 814931 );
Copy
5
90.04 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
384769
399688
407769
427966
443040
447877
448368
448703
451263
457987
467340
479002
485357
491725
497715
507376
510428
510550
512855
513025
513032
513033
514070
518774
518850
520594
524234
525731
535986
536835
537945
539289
541185
541642
543547
544640
552715
552718
559121
560646
561117
563540
565099
568480
574269
574460
575787
582521
584950
592440
592971
593210
607181
607204
618387
618563
619401
621463
621976
626838
642556
645241
650200
666784
666865
742526
743494
807976
808229
814931
]
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 (384769 , 399688 , 407769 , 427966 , 443040 , 447877 , 448368 , 448703 , 451263 , 457987 , 467340 , 479002 , 485357 , 491725 , 497715 , 507376 , 510428 , 510550 , 512855 , 513025 , 513032 , 513033 , 514070 , 518774 , 518850 , 520594 , 524234 , 525731 , 535986 , 536835 , 537945 , 539289 , 541185 , 541642 , 543547 , 544640 , 552715 , 552718 , 559121 , 560646 , 561117 , 563540 , 565099 , 568480 , 574269 , 574460 , 575787 , 582521 , 584950 , 592440 , 592971 , 593210 , 607181 , 607204 , 618387 , 618563 , 619401 , 621463 , 621976 , 626838 , 642556 , 645241 , 650200 , 666784 , 666865 , 742526 , 743494 , 807976 , 808229 , 814931 );
Copy