3
13.89 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
518206
436139
616315
591016
447888
468010
537670
518270
520739
536766
649556
470011
443202
519492
423633
430786
789002
439151
463811
487506
487713
507601
472962
559095
514768
528459
462372
420472
431448
527975
535279
641986
513324
633732
463096
559159
548548
615608
523003
634561
514080
603102
602268
476520
525058
617023
636869
464062
453048
506619
456518
596168
501655
596677
585826
603888
649185
611289
535094
601922
532255
651933
557236
519563
620100
568450
680100
501119
600084
624217
601677
595871
]
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 (518206 , 436139 , 616315 , 591016 , 447888 , 468010 , 537670 , 518270 , 520739 , 536766 , 649556 , 470011 , 443202 , 519492 , 423633 , 430786 , 789002 , 439151 , 463811 , 487506 , 487713 , 507601 , 472962 , 559095 , 514768 , 528459 , 462372 , 420472 , 431448 , 527975 , 535279 , 641986 , 513324 , 633732 , 463096 , 559159 , 548548 , 615608 , 523003 , 634561 , 514080 , 603102 , 602268 , 476520 , 525058 , 617023 , 636869 , 464062 , 453048 , 506619 , 456518 , 596168 , 501655 , 596677 , 585826 , 603888 , 649185 , 611289 , 535094 , 601922 , 532255 , 651933 , 557236 , 519563 , 620100 , 568450 , 680100 , 501119 , 600084 , 624217 , 601677 , 595871 );
Copy
4
2.34 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
420472
423633
430786
431448
436139
439151
443202
447888
453048
456518
462372
463096
463811
464062
468010
470011
472962
476520
487506
487713
501119
501655
506619
507601
513324
514080
514768
518206
518270
519492
519563
520739
523003
525058
527975
528459
532255
535094
535279
536766
537670
548548
557236
559095
559159
568450
585826
591016
595871
596168
596677
600084
601677
601922
602268
603102
603888
611289
615608
616315
617023
620100
624217
633732
634561
636869
641986
649185
649556
651933
680100
789002
]
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 (420472 , 423633 , 430786 , 431448 , 436139 , 439151 , 443202 , 447888 , 453048 , 456518 , 462372 , 463096 , 463811 , 464062 , 468010 , 470011 , 472962 , 476520 , 487506 , 487713 , 501119 , 501655 , 506619 , 507601 , 513324 , 514080 , 514768 , 518206 , 518270 , 519492 , 519563 , 520739 , 523003 , 525058 , 527975 , 528459 , 532255 , 535094 , 535279 , 536766 , 537670 , 548548 , 557236 , 559095 , 559159 , 568450 , 585826 , 591016 , 595871 , 596168 , 596677 , 600084 , 601677 , 601922 , 602268 , 603102 , 603888 , 611289 , 615608 , 616315 , 617023 , 620100 , 624217 , 633732 , 634561 , 636869 , 641986 , 649185 , 649556 , 651933 , 680100 , 789002 );
Copy
5
140.68 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
420472
423633
430786
431448
436139
439151
443202
447888
453048
456518
462372
463096
463811
464062
468010
470011
472962
476520
487506
487713
501119
501655
506619
507601
513324
514080
514768
518206
518270
519492
519563
520739
523003
525058
527975
528459
532255
535094
535279
536766
537670
548548
557236
559095
559159
568450
585826
591016
595871
596168
596677
600084
601677
601922
602268
603102
603888
611289
615608
616315
617023
620100
624217
633732
634561
636869
641986
649185
649556
651933
680100
789002
]
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 (420472 , 423633 , 430786 , 431448 , 436139 , 439151 , 443202 , 447888 , 453048 , 456518 , 462372 , 463096 , 463811 , 464062 , 468010 , 470011 , 472962 , 476520 , 487506 , 487713 , 501119 , 501655 , 506619 , 507601 , 513324 , 514080 , 514768 , 518206 , 518270 , 519492 , 519563 , 520739 , 523003 , 525058 , 527975 , 528459 , 532255 , 535094 , 535279 , 536766 , 537670 , 548548 , 557236 , 559095 , 559159 , 568450 , 585826 , 591016 , 595871 , 596168 , 596677 , 600084 , 601677 , 601922 , 602268 , 603102 , 603888 , 611289 , 615608 , 616315 , 617023 , 620100 , 624217 , 633732 , 634561 , 636869 , 641986 , 649185 , 649556 , 651933 , 680100 , 789002 );
Copy