3
10.84 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
782783
53553
193390
530287
381928
384138
557069
568188
649276
411507
543740
720877
767874
768186
486445
397899
395404
721988
543384
708433
616629
718388
724263
562829
395258
814255
717665
708303
389116
581552
464949
407614
477478
521443
723892
424791
456629
503233
638552
581292
544113
466930
468019
425709
466490
484695
483320
559386
423349
576412
406308
526540
528586
513606
513607
423329
523212
520205
468651
543005
440625
611649
588286
522878
520759
]
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 (782783 , 53553 , 193390 , 530287 , 381928 , 384138 , 557069 , 568188 , 649276 , 411507 , 543740 , 720877 , 767874 , 768186 , 486445 , 397899 , 395404 , 721988 , 543384 , 708433 , 616629 , 718388 , 724263 , 562829 , 395258 , 814255 , 717665 , 708303 , 389116 , 581552 , 464949 , 407614 , 477478 , 521443 , 723892 , 424791 , 456629 , 503233 , 638552 , 581292 , 544113 , 466930 , 468019 , 425709 , 466490 , 484695 , 483320 , 559386 , 423349 , 576412 , 406308 , 526540 , 528586 , 513606 , 513607 , 423329 , 523212 , 520205 , 468651 , 543005 , 440625 , 611649 , 588286 , 522878 , 520759 );
Copy
4
2.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
53553
193390
381928
384138
389116
395258
395404
397899
406308
407614
411507
423329
423349
424791
425709
440625
456629
464949
466490
466930
468019
468651
477478
483320
484695
486445
503233
513606
513607
520205
520759
521443
522878
523212
526540
528586
530287
543005
543384
543740
544113
557069
559386
562829
568188
576412
581292
581552
588286
611649
616629
638552
649276
708303
708433
717665
718388
720877
721988
723892
724263
767874
768186
782783
814255
]
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 (53553 , 193390 , 381928 , 384138 , 389116 , 395258 , 395404 , 397899 , 406308 , 407614 , 411507 , 423329 , 423349 , 424791 , 425709 , 440625 , 456629 , 464949 , 466490 , 466930 , 468019 , 468651 , 477478 , 483320 , 484695 , 486445 , 503233 , 513606 , 513607 , 520205 , 520759 , 521443 , 522878 , 523212 , 526540 , 528586 , 530287 , 543005 , 543384 , 543740 , 544113 , 557069 , 559386 , 562829 , 568188 , 576412 , 581292 , 581552 , 588286 , 611649 , 616629 , 638552 , 649276 , 708303 , 708433 , 717665 , 718388 , 720877 , 721988 , 723892 , 724263 , 767874 , 768186 , 782783 , 814255 );
Copy
5
74.41 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
53553
193390
381928
384138
389116
395258
395404
397899
406308
407614
411507
423329
423349
424791
425709
440625
456629
464949
466490
466930
468019
468651
477478
483320
484695
486445
503233
513606
513607
520205
520759
521443
522878
523212
526540
528586
530287
543005
543384
543740
544113
557069
559386
562829
568188
576412
581292
581552
588286
611649
616629
638552
649276
708303
708433
717665
718388
720877
721988
723892
724263
767874
768186
782783
814255
]
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 (53553 , 193390 , 381928 , 384138 , 389116 , 395258 , 395404 , 397899 , 406308 , 407614 , 411507 , 423329 , 423349 , 424791 , 425709 , 440625 , 456629 , 464949 , 466490 , 466930 , 468019 , 468651 , 477478 , 483320 , 484695 , 486445 , 503233 , 513606 , 513607 , 520205 , 520759 , 521443 , 522878 , 523212 , 526540 , 528586 , 530287 , 543005 , 543384 , 543740 , 544113 , 557069 , 559386 , 562829 , 568188 , 576412 , 581292 , 581552 , 588286 , 611649 , 616629 , 638552 , 649276 , 708303 , 708433 , 717665 , 718388 , 720877 , 721988 , 723892 , 724263 , 767874 , 768186 , 782783 , 814255 );
Copy