4
14.07 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
449269
454610
462749
535434
536523
500331
520516
535045
564387
566144
560348
561508
646243
720115
678970
721717
592318
790397
812581
791489
446141
476136
454667
447499
470339
472489
524664
512551
488772
488813
500854
515686
522827
520015
494282
529267
501551
531405
541388
568283
650016
677279
580863
616097
762217
609154
704222
805146
423349
519093
814934
476767
494291
530791
586631
427232
448333
515681
515726
404340
478049
662382
605398
468835
601991
516053
601356
556987
624215
528435
]
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 (449269 , 454610 , 462749 , 535434 , 536523 , 500331 , 520516 , 535045 , 564387 , 566144 , 560348 , 561508 , 646243 , 720115 , 678970 , 721717 , 592318 , 790397 , 812581 , 791489 , 446141 , 476136 , 454667 , 447499 , 470339 , 472489 , 524664 , 512551 , 488772 , 488813 , 500854 , 515686 , 522827 , 520015 , 494282 , 529267 , 501551 , 531405 , 541388 , 568283 , 650016 , 677279 , 580863 , 616097 , 762217 , 609154 , 704222 , 805146 , 423349 , 519093 , 814934 , 476767 , 494291 , 530791 , 586631 , 427232 , 448333 , 515681 , 515726 , 404340 , 478049 , 662382 , 605398 , 468835 , 601991 , 516053 , 601356 , 556987 , 624215 , 528435 );
Copy
5
212.40 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
404340
423349
427232
446141
447499
448333
449269
454610
454667
462749
468835
470339
472489
476136
476767
478049
488772
488813
494282
494291
500331
500854
501551
512551
515681
515686
515726
516053
519093
520015
520516
522827
524664
528435
529267
530791
531405
535045
535434
536523
541388
556987
560348
561508
564387
566144
568283
580863
586631
592318
601356
601991
605398
609154
616097
624215
646243
650016
662382
677279
678970
704222
720115
721717
762217
790397
791489
805146
812581
814934
]
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 (404340 , 423349 , 427232 , 446141 , 447499 , 448333 , 449269 , 454610 , 454667 , 462749 , 468835 , 470339 , 472489 , 476136 , 476767 , 478049 , 488772 , 488813 , 494282 , 494291 , 500331 , 500854 , 501551 , 512551 , 515681 , 515686 , 515726 , 516053 , 519093 , 520015 , 520516 , 522827 , 524664 , 528435 , 529267 , 530791 , 531405 , 535045 , 535434 , 536523 , 541388 , 556987 , 560348 , 561508 , 564387 , 566144 , 568283 , 580863 , 586631 , 592318 , 601356 , 601991 , 605398 , 609154 , 616097 , 624215 , 646243 , 650016 , 662382 , 677279 , 678970 , 704222 , 720115 , 721717 , 762217 , 790397 , 791489 , 805146 , 812581 , 814934 );
Copy
6
83.27 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
404340
423349
427232
446141
447499
448333
449269
454610
454667
462749
468835
470339
472489
476136
476767
478049
488772
488813
494282
494291
500331
500854
501551
512551
515681
515686
515726
516053
519093
520015
520516
522827
524664
528435
529267
530791
531405
535045
535434
536523
541388
556987
560348
561508
564387
566144
568283
580863
586631
592318
601356
601991
605398
609154
616097
624215
646243
650016
662382
677279
678970
704222
720115
721717
762217
790397
791489
805146
812581
814934
]
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 (404340 , 423349 , 427232 , 446141 , 447499 , 448333 , 449269 , 454610 , 454667 , 462749 , 468835 , 470339 , 472489 , 476136 , 476767 , 478049 , 488772 , 488813 , 494282 , 494291 , 500331 , 500854 , 501551 , 512551 , 515681 , 515686 , 515726 , 516053 , 519093 , 520015 , 520516 , 522827 , 524664 , 528435 , 529267 , 530791 , 531405 , 535045 , 535434 , 536523 , 541388 , 556987 , 560348 , 561508 , 564387 , 566144 , 568283 , 580863 , 586631 , 592318 , 601356 , 601991 , 605398 , 609154 , 616097 , 624215 , 646243 , 650016 , 662382 , 677279 , 678970 , 704222 , 720115 , 721717 , 762217 , 790397 , 791489 , 805146 , 812581 , 814934 );
Copy