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