3
15.02 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
521358
517282
505399
514575
516476
558019
566002
568070
582249
555565
559071
581746
581887
549507
549849
568761
645939
629762
390218
460728
431494
450814
523832
538005
538970
538010
602734
489955
450178
464438
449845
460258
539479
520695
537123
561505
549825
646033
549840
549848
626266
591296
616978
730352
460277
519151
490424
498052
504772
519512
538001
538008
520697
507884
549839
559067
589681
601848
728452
446633
444703
502197
549845
563450
724823
609803
447655
421071
563456
602672
534377
609933
518040
531920
561480
]
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 (521358 , 517282 , 505399 , 514575 , 516476 , 558019 , 566002 , 568070 , 582249 , 555565 , 559071 , 581746 , 581887 , 549507 , 549849 , 568761 , 645939 , 629762 , 390218 , 460728 , 431494 , 450814 , 523832 , 538005 , 538970 , 538010 , 602734 , 489955 , 450178 , 464438 , 449845 , 460258 , 539479 , 520695 , 537123 , 561505 , 549825 , 646033 , 549840 , 549848 , 626266 , 591296 , 616978 , 730352 , 460277 , 519151 , 490424 , 498052 , 504772 , 519512 , 538001 , 538008 , 520697 , 507884 , 549839 , 559067 , 589681 , 601848 , 728452 , 446633 , 444703 , 502197 , 549845 , 563450 , 724823 , 609803 , 447655 , 421071 , 563456 , 602672 , 534377 , 609933 , 518040 , 531920 , 561480 );
Copy
4
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
390218
421071
431494
444703
446633
447655
449845
450178
450814
460258
460277
460728
464438
489955
490424
498052
502197
504772
505399
507884
514575
516476
517282
518040
519151
519512
520695
520697
521358
523832
531920
534377
537123
538001
538005
538008
538010
538970
539479
549507
549825
549839
549840
549845
549848
549849
555565
558019
559067
559071
561480
561505
563450
563456
566002
568070
568761
581746
581887
582249
589681
591296
601848
602672
602734
609803
609933
616978
626266
629762
645939
646033
724823
728452
730352
]
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 (390218 , 421071 , 431494 , 444703 , 446633 , 447655 , 449845 , 450178 , 450814 , 460258 , 460277 , 460728 , 464438 , 489955 , 490424 , 498052 , 502197 , 504772 , 505399 , 507884 , 514575 , 516476 , 517282 , 518040 , 519151 , 519512 , 520695 , 520697 , 521358 , 523832 , 531920 , 534377 , 537123 , 538001 , 538005 , 538008 , 538010 , 538970 , 539479 , 549507 , 549825 , 549839 , 549840 , 549845 , 549848 , 549849 , 555565 , 558019 , 559067 , 559071 , 561480 , 561505 , 563450 , 563456 , 566002 , 568070 , 568761 , 581746 , 581887 , 582249 , 589681 , 591296 , 601848 , 602672 , 602734 , 609803 , 609933 , 616978 , 626266 , 629762 , 645939 , 646033 , 724823 , 728452 , 730352 );
Copy
5
87.70 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
390218
421071
431494
444703
446633
447655
449845
450178
450814
460258
460277
460728
464438
489955
490424
498052
502197
504772
505399
507884
514575
516476
517282
518040
519151
519512
520695
520697
521358
523832
531920
534377
537123
538001
538005
538008
538010
538970
539479
549507
549825
549839
549840
549845
549848
549849
555565
558019
559067
559071
561480
561505
563450
563456
566002
568070
568761
581746
581887
582249
589681
591296
601848
602672
602734
609803
609933
616978
626266
629762
645939
646033
724823
728452
730352
]
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 (390218 , 421071 , 431494 , 444703 , 446633 , 447655 , 449845 , 450178 , 450814 , 460258 , 460277 , 460728 , 464438 , 489955 , 490424 , 498052 , 502197 , 504772 , 505399 , 507884 , 514575 , 516476 , 517282 , 518040 , 519151 , 519512 , 520695 , 520697 , 521358 , 523832 , 531920 , 534377 , 537123 , 538001 , 538005 , 538008 , 538010 , 538970 , 539479 , 549507 , 549825 , 549839 , 549840 , 549845 , 549848 , 549849 , 555565 , 558019 , 559067 , 559071 , 561480 , 561505 , 563450 , 563456 , 566002 , 568070 , 568761 , 581746 , 581887 , 582249 , 589681 , 591296 , 601848 , 602672 , 602734 , 609803 , 609933 , 616978 , 626266 , 629762 , 645939 , 646033 , 724823 , 728452 , 730352 );
Copy