4
9.96 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
811401
724564
767454
784386
801416
748748
738309
811405
463334
477784
554183
547010
668971
602961
618133
610185
631206
738364
721062
799402
359260
518192
584430
673118
709452
660307
619773
590138
606130
775268
788524
801210
731177
784151
801382
755345
761699
497683
540428
526507
499900
559172
581487
546870
673862
649262
618852
734509
770519
746994
792553
474154
536699
496540
530512
664241
666983
547815
591110
618610
595068
741288
814392
457887
515415
579422
591349
596908
499978
473541
565412
581620
590150
]
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 (811401 , 724564 , 767454 , 784386 , 801416 , 748748 , 738309 , 811405 , 463334 , 477784 , 554183 , 547010 , 668971 , 602961 , 618133 , 610185 , 631206 , 738364 , 721062 , 799402 , 359260 , 518192 , 584430 , 673118 , 709452 , 660307 , 619773 , 590138 , 606130 , 775268 , 788524 , 801210 , 731177 , 784151 , 801382 , 755345 , 761699 , 497683 , 540428 , 526507 , 499900 , 559172 , 581487 , 546870 , 673862 , 649262 , 618852 , 734509 , 770519 , 746994 , 792553 , 474154 , 536699 , 496540 , 530512 , 664241 , 666983 , 547815 , 591110 , 618610 , 595068 , 741288 , 814392 , 457887 , 515415 , 579422 , 591349 , 596908 , 499978 , 473541 , 565412 , 581620 , 590150 );
Copy
5
2.87 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
359260
457887
463334
473541
474154
477784
496540
497683
499900
499978
515415
518192
526507
530512
536699
540428
546870
547010
547815
554183
559172
565412
579422
581487
581620
584430
590138
590150
591110
591349
595068
596908
602961
606130
610185
618133
618610
618852
619773
631206
649262
660307
664241
666983
668971
673118
673862
709452
721062
724564
731177
734509
738309
738364
741288
746994
748748
755345
761699
767454
770519
775268
784151
784386
788524
792553
799402
801210
801382
801416
811401
811405
814392
]
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 (359260 , 457887 , 463334 , 473541 , 474154 , 477784 , 496540 , 497683 , 499900 , 499978 , 515415 , 518192 , 526507 , 530512 , 536699 , 540428 , 546870 , 547010 , 547815 , 554183 , 559172 , 565412 , 579422 , 581487 , 581620 , 584430 , 590138 , 590150 , 591110 , 591349 , 595068 , 596908 , 602961 , 606130 , 610185 , 618133 , 618610 , 618852 , 619773 , 631206 , 649262 , 660307 , 664241 , 666983 , 668971 , 673118 , 673862 , 709452 , 721062 , 724564 , 731177 , 734509 , 738309 , 738364 , 741288 , 746994 , 748748 , 755345 , 761699 , 767454 , 770519 , 775268 , 784151 , 784386 , 788524 , 792553 , 799402 , 801210 , 801382 , 801416 , 811401 , 811405 , 814392 );
Copy
6
111.94 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
359260
457887
463334
473541
474154
477784
496540
497683
499900
499978
515415
518192
526507
530512
536699
540428
546870
547010
547815
554183
559172
565412
579422
581487
581620
584430
590138
590150
591110
591349
595068
596908
602961
606130
610185
618133
618610
618852
619773
631206
649262
660307
664241
666983
668971
673118
673862
709452
721062
724564
731177
734509
738309
738364
741288
746994
748748
755345
761699
767454
770519
775268
784151
784386
788524
792553
799402
801210
801382
801416
811401
811405
814392
]
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 (359260 , 457887 , 463334 , 473541 , 474154 , 477784 , 496540 , 497683 , 499900 , 499978 , 515415 , 518192 , 526507 , 530512 , 536699 , 540428 , 546870 , 547010 , 547815 , 554183 , 559172 , 565412 , 579422 , 581487 , 581620 , 584430 , 590138 , 590150 , 591110 , 591349 , 595068 , 596908 , 602961 , 606130 , 610185 , 618133 , 618610 , 618852 , 619773 , 631206 , 649262 , 660307 , 664241 , 666983 , 668971 , 673118 , 673862 , 709452 , 721062 , 724564 , 731177 , 734509 , 738309 , 738364 , 741288 , 746994 , 748748 , 755345 , 761699 , 767454 , 770519 , 775268 , 784151 , 784386 , 788524 , 792553 , 799402 , 801210 , 801382 , 801416 , 811401 , 811405 , 814392 );
Copy