4
12.97 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
826785
546562
677972
743967
610144
489321
499330
588519
476279
801082
537827
450134
485769
781961
472596
758441
411918
593070
534594
567731
485764
514331
546933
465356
390233
744206
450136
498310
502030
459643
479772
531321
742843
724420
827259
744188
416238
636438
801117
449084
577267
466919
681640
454547
664389
413454
498216
770187
766660
401903
529700
499327
472654
525494
517835
506066
470566
716557
788978
781980
453146
383785
381951
416850
506832
581007
563424
678738
412985
413461
468199
534579
388719
522594
]
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 (826785 , 546562 , 677972 , 743967 , 610144 , 489321 , 499330 , 588519 , 476279 , 801082 , 537827 , 450134 , 485769 , 781961 , 472596 , 758441 , 411918 , 593070 , 534594 , 567731 , 485764 , 514331 , 546933 , 465356 , 390233 , 744206 , 450136 , 498310 , 502030 , 459643 , 479772 , 531321 , 742843 , 724420 , 827259 , 744188 , 416238 , 636438 , 801117 , 449084 , 577267 , 466919 , 681640 , 454547 , 664389 , 413454 , 498216 , 770187 , 766660 , 401903 , 529700 , 499327 , 472654 , 525494 , 517835 , 506066 , 470566 , 716557 , 788978 , 781980 , 453146 , 383785 , 381951 , 416850 , 506832 , 581007 , 563424 , 678738 , 412985 , 413461 , 468199 , 534579 , 388719 , 522594 );
Copy
5
3.17 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
381951
383785
388719
390233
401903
411918
412985
413454
413461
416238
416850
449084
450134
450136
453146
454547
459643
465356
466919
468199
470566
472596
472654
476279
479772
485764
485769
489321
498216
498310
499327
499330
502030
506066
506832
514331
517835
522594
525494
529700
531321
534579
534594
537827
546562
546933
563424
567731
577267
581007
588519
593070
610144
636438
664389
677972
678738
681640
716557
724420
742843
743967
744188
744206
758441
766660
770187
781961
781980
788978
801082
801117
826785
827259
]
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 (381951 , 383785 , 388719 , 390233 , 401903 , 411918 , 412985 , 413454 , 413461 , 416238 , 416850 , 449084 , 450134 , 450136 , 453146 , 454547 , 459643 , 465356 , 466919 , 468199 , 470566 , 472596 , 472654 , 476279 , 479772 , 485764 , 485769 , 489321 , 498216 , 498310 , 499327 , 499330 , 502030 , 506066 , 506832 , 514331 , 517835 , 522594 , 525494 , 529700 , 531321 , 534579 , 534594 , 537827 , 546562 , 546933 , 563424 , 567731 , 577267 , 581007 , 588519 , 593070 , 610144 , 636438 , 664389 , 677972 , 678738 , 681640 , 716557 , 724420 , 742843 , 743967 , 744188 , 744206 , 758441 , 766660 , 770187 , 781961 , 781980 , 788978 , 801082 , 801117 , 826785 , 827259 );
Copy
6
107.26 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
381951
383785
388719
390233
401903
411918
412985
413454
413461
416238
416850
449084
450134
450136
453146
454547
459643
465356
466919
468199
470566
472596
472654
476279
479772
485764
485769
489321
498216
498310
499327
499330
502030
506066
506832
514331
517835
522594
525494
529700
531321
534579
534594
537827
546562
546933
563424
567731
577267
581007
588519
593070
610144
636438
664389
677972
678738
681640
716557
724420
742843
743967
744188
744206
758441
766660
770187
781961
781980
788978
801082
801117
826785
827259
]
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 (381951 , 383785 , 388719 , 390233 , 401903 , 411918 , 412985 , 413454 , 413461 , 416238 , 416850 , 449084 , 450134 , 450136 , 453146 , 454547 , 459643 , 465356 , 466919 , 468199 , 470566 , 472596 , 472654 , 476279 , 479772 , 485764 , 485769 , 489321 , 498216 , 498310 , 499327 , 499330 , 502030 , 506066 , 506832 , 514331 , 517835 , 522594 , 525494 , 529700 , 531321 , 534579 , 534594 , 537827 , 546562 , 546933 , 563424 , 567731 , 577267 , 581007 , 588519 , 593070 , 610144 , 636438 , 664389 , 677972 , 678738 , 681640 , 716557 , 724420 , 742843 , 743967 , 744188 , 744206 , 758441 , 766660 , 770187 , 781961 , 781980 , 788978 , 801082 , 801117 , 826785 , 827259 );
Copy