3
10.91 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
528029
636259
814126
478868
807510
668996
827858
476833
686776
566264
623820
576658
827940
383159
551253
566038
637072
827943
589296
605376
587110
403284
468555
643411
792906
381808
581629
641679
576161
486189
597528
408326
390344
517300
627646
721843
398146
588899
550130
559766
385505
508809
576730
416720
815076
490694
414618
538915
497240
562282
430324
603536
449809
591319
425028
676641
565542
647960
488585
622229
514949
677307
557948
492518
559392
383202
574200
422044
487703
528030
]
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 (528029 , 636259 , 814126 , 478868 , 807510 , 668996 , 827858 , 476833 , 686776 , 566264 , 623820 , 576658 , 827940 , 383159 , 551253 , 566038 , 637072 , 827943 , 589296 , 605376 , 587110 , 403284 , 468555 , 643411 , 792906 , 381808 , 581629 , 641679 , 576161 , 486189 , 597528 , 408326 , 390344 , 517300 , 627646 , 721843 , 398146 , 588899 , 550130 , 559766 , 385505 , 508809 , 576730 , 416720 , 815076 , 490694 , 414618 , 538915 , 497240 , 562282 , 430324 , 603536 , 449809 , 591319 , 425028 , 676641 , 565542 , 647960 , 488585 , 622229 , 514949 , 677307 , 557948 , 492518 , 559392 , 383202 , 574200 , 422044 , 487703 , 528030 );
Copy
4
2.36 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
381808
383159
383202
385505
390344
398146
403284
408326
414618
416720
422044
425028
430324
449809
468555
476833
478868
486189
487703
488585
490694
492518
497240
508809
514949
517300
528029
528030
538915
550130
551253
557948
559392
559766
562282
565542
566038
566264
574200
576161
576658
576730
581629
587110
588899
589296
591319
597528
603536
605376
622229
623820
627646
636259
637072
641679
643411
647960
668996
676641
677307
686776
721843
792906
807510
814126
815076
827858
827940
827943
]
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 (381808 , 383159 , 383202 , 385505 , 390344 , 398146 , 403284 , 408326 , 414618 , 416720 , 422044 , 425028 , 430324 , 449809 , 468555 , 476833 , 478868 , 486189 , 487703 , 488585 , 490694 , 492518 , 497240 , 508809 , 514949 , 517300 , 528029 , 528030 , 538915 , 550130 , 551253 , 557948 , 559392 , 559766 , 562282 , 565542 , 566038 , 566264 , 574200 , 576161 , 576658 , 576730 , 581629 , 587110 , 588899 , 589296 , 591319 , 597528 , 603536 , 605376 , 622229 , 623820 , 627646 , 636259 , 637072 , 641679 , 643411 , 647960 , 668996 , 676641 , 677307 , 686776 , 721843 , 792906 , 807510 , 814126 , 815076 , 827858 , 827940 , 827943 );
Copy
5
83.63 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
381808
383159
383202
385505
390344
398146
403284
408326
414618
416720
422044
425028
430324
449809
468555
476833
478868
486189
487703
488585
490694
492518
497240
508809
514949
517300
528029
528030
538915
550130
551253
557948
559392
559766
562282
565542
566038
566264
574200
576161
576658
576730
581629
587110
588899
589296
591319
597528
603536
605376
622229
623820
627646
636259
637072
641679
643411
647960
668996
676641
677307
686776
721843
792906
807510
814126
815076
827858
827940
827943
]
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 (381808 , 383159 , 383202 , 385505 , 390344 , 398146 , 403284 , 408326 , 414618 , 416720 , 422044 , 425028 , 430324 , 449809 , 468555 , 476833 , 478868 , 486189 , 487703 , 488585 , 490694 , 492518 , 497240 , 508809 , 514949 , 517300 , 528029 , 528030 , 538915 , 550130 , 551253 , 557948 , 559392 , 559766 , 562282 , 565542 , 566038 , 566264 , 574200 , 576161 , 576658 , 576730 , 581629 , 587110 , 588899 , 589296 , 591319 , 597528 , 603536 , 605376 , 622229 , 623820 , 627646 , 636259 , 637072 , 641679 , 643411 , 647960 , 668996 , 676641 , 677307 , 686776 , 721843 , 792906 , 807510 , 814126 , 815076 , 827858 , 827940 , 827943 );
Copy