3
13.12 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
773126
430800
784959
452273
467208
463624
592770
801080
734639
409134
326115
598116
400194
767253
382613
213573
797245
803328
416931
704218
661034
769448
382475
384595
276696
748690
756109
767679
721006
392169
459105
85303
256487
485678
675060
584710
637469
743928
499706
428702
408414
16946
468599
426417
463840
452170
411071
793703
454273
95586
452975
447694
601766
448095
471919
454804
402012
525441
463409
494786
500571
557259
455861
414344
425260
642662
590910
520763
]
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 (773126 , 430800 , 784959 , 452273 , 467208 , 463624 , 592770 , 801080 , 734639 , 409134 , 326115 , 598116 , 400194 , 767253 , 382613 , 213573 , 797245 , 803328 , 416931 , 704218 , 661034 , 769448 , 382475 , 384595 , 276696 , 748690 , 756109 , 767679 , 721006 , 392169 , 459105 , 85303 , 256487 , 485678 , 675060 , 584710 , 637469 , 743928 , 499706 , 428702 , 408414 , 16946 , 468599 , 426417 , 463840 , 452170 , 411071 , 793703 , 454273 , 95586 , 452975 , 447694 , 601766 , 448095 , 471919 , 454804 , 402012 , 525441 , 463409 , 494786 , 500571 , 557259 , 455861 , 414344 , 425260 , 642662 , 590910 , 520763 );
Copy
4
2.54 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
16946
85303
95586
213573
256487
276696
326115
382475
382613
384595
392169
400194
402012
408414
409134
411071
414344
416931
425260
426417
428702
430800
447694
448095
452170
452273
452975
454273
454804
455861
459105
463409
463624
463840
467208
468599
471919
485678
494786
499706
500571
520763
525441
557259
584710
590910
592770
598116
601766
637469
642662
661034
675060
704218
721006
734639
743928
748690
756109
767679
769448
773126
784959
793703
797245
801080
803328
]
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 (16946 , 85303 , 95586 , 213573 , 256487 , 276696 , 326115 , 382475 , 382613 , 384595 , 392169 , 400194 , 402012 , 408414 , 409134 , 411071 , 414344 , 416931 , 425260 , 426417 , 428702 , 430800 , 447694 , 448095 , 452170 , 452273 , 452975 , 454273 , 454804 , 455861 , 459105 , 463409 , 463624 , 463840 , 467208 , 468599 , 471919 , 485678 , 494786 , 499706 , 500571 , 520763 , 525441 , 557259 , 584710 , 590910 , 592770 , 598116 , 601766 , 637469 , 642662 , 661034 , 675060 , 704218 , 721006 , 734639 , 743928 , 748690 , 756109 , 767679 , 769448 , 773126 , 784959 , 793703 , 797245 , 801080 , 803328 );
Copy
5
77.38 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
16946
85303
95586
213573
256487
276696
326115
382475
382613
384595
392169
400194
402012
408414
409134
411071
414344
416931
425260
426417
428702
430800
447694
448095
452170
452273
452975
454273
454804
455861
459105
463409
463624
463840
467208
468599
471919
485678
494786
499706
500571
520763
525441
557259
584710
590910
592770
598116
601766
637469
642662
661034
675060
704218
721006
734639
743928
748690
756109
767679
769448
773126
784959
793703
797245
801080
803328
]
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 (16946 , 85303 , 95586 , 213573 , 256487 , 276696 , 326115 , 382475 , 382613 , 384595 , 392169 , 400194 , 402012 , 408414 , 409134 , 411071 , 414344 , 416931 , 425260 , 426417 , 428702 , 430800 , 447694 , 448095 , 452170 , 452273 , 452975 , 454273 , 454804 , 455861 , 459105 , 463409 , 463624 , 463840 , 467208 , 468599 , 471919 , 485678 , 494786 , 499706 , 500571 , 520763 , 525441 , 557259 , 584710 , 590910 , 592770 , 598116 , 601766 , 637469 , 642662 , 661034 , 675060 , 704218 , 721006 , 734639 , 743928 , 748690 , 756109 , 767679 , 769448 , 773126 , 784959 , 793703 , 797245 , 801080 , 803328 );
Copy