3
10.66 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
441589
452310
484533
447273
471721
538773
500240
546487
566331
575928
541325
579821
713701
554275
558075
642515
622509
767220
770263
752609
453039
468604
496733
484792
509645
527810
529432
423592
445289
453964
456329
446908
534432
541807
545201
578290
709917
598249
744329
644056
423908
464142
467588
481214
447557
503056
430262
541278
702622
435157
481047
469641
446991
502242
467995
510321
542709
788264
443374
514241
458907
472299
487370
598485
424530
472474
582631
603953
413141
528923
]
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 (441589 , 452310 , 484533 , 447273 , 471721 , 538773 , 500240 , 546487 , 566331 , 575928 , 541325 , 579821 , 713701 , 554275 , 558075 , 642515 , 622509 , 767220 , 770263 , 752609 , 453039 , 468604 , 496733 , 484792 , 509645 , 527810 , 529432 , 423592 , 445289 , 453964 , 456329 , 446908 , 534432 , 541807 , 545201 , 578290 , 709917 , 598249 , 744329 , 644056 , 423908 , 464142 , 467588 , 481214 , 447557 , 503056 , 430262 , 541278 , 702622 , 435157 , 481047 , 469641 , 446991 , 502242 , 467995 , 510321 , 542709 , 788264 , 443374 , 514241 , 458907 , 472299 , 487370 , 598485 , 424530 , 472474 , 582631 , 603953 , 413141 , 528923 );
Copy
4
2.43 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
413141
423592
423908
424530
430262
435157
441589
443374
445289
446908
446991
447273
447557
452310
453039
453964
456329
458907
464142
467588
467995
468604
469641
471721
472299
472474
481047
481214
484533
484792
487370
496733
500240
502242
503056
509645
510321
514241
527810
528923
529432
534432
538773
541278
541325
541807
542709
545201
546487
554275
558075
566331
575928
578290
579821
582631
598249
598485
603953
622509
642515
644056
702622
709917
713701
744329
752609
767220
770263
788264
]
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 (413141 , 423592 , 423908 , 424530 , 430262 , 435157 , 441589 , 443374 , 445289 , 446908 , 446991 , 447273 , 447557 , 452310 , 453039 , 453964 , 456329 , 458907 , 464142 , 467588 , 467995 , 468604 , 469641 , 471721 , 472299 , 472474 , 481047 , 481214 , 484533 , 484792 , 487370 , 496733 , 500240 , 502242 , 503056 , 509645 , 510321 , 514241 , 527810 , 528923 , 529432 , 534432 , 538773 , 541278 , 541325 , 541807 , 542709 , 545201 , 546487 , 554275 , 558075 , 566331 , 575928 , 578290 , 579821 , 582631 , 598249 , 598485 , 603953 , 622509 , 642515 , 644056 , 702622 , 709917 , 713701 , 744329 , 752609 , 767220 , 770263 , 788264 );
Copy
5
87.83 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
413141
423592
423908
424530
430262
435157
441589
443374
445289
446908
446991
447273
447557
452310
453039
453964
456329
458907
464142
467588
467995
468604
469641
471721
472299
472474
481047
481214
484533
484792
487370
496733
500240
502242
503056
509645
510321
514241
527810
528923
529432
534432
538773
541278
541325
541807
542709
545201
546487
554275
558075
566331
575928
578290
579821
582631
598249
598485
603953
622509
642515
644056
702622
709917
713701
744329
752609
767220
770263
788264
]
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 (413141 , 423592 , 423908 , 424530 , 430262 , 435157 , 441589 , 443374 , 445289 , 446908 , 446991 , 447273 , 447557 , 452310 , 453039 , 453964 , 456329 , 458907 , 464142 , 467588 , 467995 , 468604 , 469641 , 471721 , 472299 , 472474 , 481047 , 481214 , 484533 , 484792 , 487370 , 496733 , 500240 , 502242 , 503056 , 509645 , 510321 , 514241 , 527810 , 528923 , 529432 , 534432 , 538773 , 541278 , 541325 , 541807 , 542709 , 545201 , 546487 , 554275 , 558075 , 566331 , 575928 , 578290 , 579821 , 582631 , 598249 , 598485 , 603953 , 622509 , 642515 , 644056 , 702622 , 709917 , 713701 , 744329 , 752609 , 767220 , 770263 , 788264 );
Copy