3
17.50 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
537648
645284
642032
635215
467108
541839
459794
644916
540559
636306
700685
531145
454802
536638
532745
666865
639334
636300
448808
556911
555140
631256
415199
440911
539203
536744
545611
637043
497690
641986
631597
554526
458051
459362
637078
643112
424259
648220
550128
716878
466404
531252
555136
720072
642775
533746
646771
666871
683261
703831
532984
679799
648815
406449
498297
533944
532738
651148
447558
636308
461606
545461
511830
628126
534021
566786
629045
452797
545437
448522
515793
572640
621330
]
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 (537648 , 645284 , 642032 , 635215 , 467108 , 541839 , 459794 , 644916 , 540559 , 636306 , 700685 , 531145 , 454802 , 536638 , 532745 , 666865 , 639334 , 636300 , 448808 , 556911 , 555140 , 631256 , 415199 , 440911 , 539203 , 536744 , 545611 , 637043 , 497690 , 641986 , 631597 , 554526 , 458051 , 459362 , 637078 , 643112 , 424259 , 648220 , 550128 , 716878 , 466404 , 531252 , 555136 , 720072 , 642775 , 533746 , 646771 , 666871 , 683261 , 703831 , 532984 , 679799 , 648815 , 406449 , 498297 , 533944 , 532738 , 651148 , 447558 , 636308 , 461606 , 545461 , 511830 , 628126 , 534021 , 566786 , 629045 , 452797 , 545437 , 448522 , 515793 , 572640 , 621330 );
Copy
4
2.56 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
406449
415199
424259
440911
447558
448522
448808
452797
454802
458051
459362
459794
461606
466404
467108
497690
498297
511830
515793
531145
531252
532738
532745
532984
533746
533944
534021
536638
536744
537648
539203
540559
541839
545437
545461
545611
550128
554526
555136
555140
556911
566786
572640
621330
628126
629045
631256
631597
635215
636300
636306
636308
637043
637078
639334
641986
642032
642775
643112
644916
645284
646771
648220
648815
651148
666865
666871
679799
683261
700685
703831
716878
720072
]
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 (406449 , 415199 , 424259 , 440911 , 447558 , 448522 , 448808 , 452797 , 454802 , 458051 , 459362 , 459794 , 461606 , 466404 , 467108 , 497690 , 498297 , 511830 , 515793 , 531145 , 531252 , 532738 , 532745 , 532984 , 533746 , 533944 , 534021 , 536638 , 536744 , 537648 , 539203 , 540559 , 541839 , 545437 , 545461 , 545611 , 550128 , 554526 , 555136 , 555140 , 556911 , 566786 , 572640 , 621330 , 628126 , 629045 , 631256 , 631597 , 635215 , 636300 , 636306 , 636308 , 637043 , 637078 , 639334 , 641986 , 642032 , 642775 , 643112 , 644916 , 645284 , 646771 , 648220 , 648815 , 651148 , 666865 , 666871 , 679799 , 683261 , 700685 , 703831 , 716878 , 720072 );
Copy
5
170.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
406449
415199
424259
440911
447558
448522
448808
452797
454802
458051
459362
459794
461606
466404
467108
497690
498297
511830
515793
531145
531252
532738
532745
532984
533746
533944
534021
536638
536744
537648
539203
540559
541839
545437
545461
545611
550128
554526
555136
555140
556911
566786
572640
621330
628126
629045
631256
631597
635215
636300
636306
636308
637043
637078
639334
641986
642032
642775
643112
644916
645284
646771
648220
648815
651148
666865
666871
679799
683261
700685
703831
716878
720072
]
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 (406449 , 415199 , 424259 , 440911 , 447558 , 448522 , 448808 , 452797 , 454802 , 458051 , 459362 , 459794 , 461606 , 466404 , 467108 , 497690 , 498297 , 511830 , 515793 , 531145 , 531252 , 532738 , 532745 , 532984 , 533746 , 533944 , 534021 , 536638 , 536744 , 537648 , 539203 , 540559 , 541839 , 545437 , 545461 , 545611 , 550128 , 554526 , 555136 , 555140 , 556911 , 566786 , 572640 , 621330 , 628126 , 629045 , 631256 , 631597 , 635215 , 636300 , 636306 , 636308 , 637043 , 637078 , 639334 , 641986 , 642032 , 642775 , 643112 , 644916 , 645284 , 646771 , 648220 , 648815 , 651148 , 666865 , 666871 , 679799 , 683261 , 700685 , 703831 , 716878 , 720072 );
Copy