3
12.40 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
409743
460407
431608
483093
480898
384142
456894
427183
403827
451540
426688
420605
468881
432743
406684
488238
188737
424264
383408
420864
486584
505243
456033
488948
397422
418617
443919
504103
497725
517545
575180
436063
514063
492635
397454
427907
457875
506670
418757
443916
401552
423780
466907
414048
473349
464272
464999
503141
507867
462495
487498
470137
455131
459344
424397
517708
470125
561892
473124
503403
422022
515578
443374
475483
439532
512615
507245
397427
440726
489729
492395
601935
550531
514997
]
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 (409743 , 460407 , 431608 , 483093 , 480898 , 384142 , 456894 , 427183 , 403827 , 451540 , 426688 , 420605 , 468881 , 432743 , 406684 , 488238 , 188737 , 424264 , 383408 , 420864 , 486584 , 505243 , 456033 , 488948 , 397422 , 418617 , 443919 , 504103 , 497725 , 517545 , 575180 , 436063 , 514063 , 492635 , 397454 , 427907 , 457875 , 506670 , 418757 , 443916 , 401552 , 423780 , 466907 , 414048 , 473349 , 464272 , 464999 , 503141 , 507867 , 462495 , 487498 , 470137 , 455131 , 459344 , 424397 , 517708 , 470125 , 561892 , 473124 , 503403 , 422022 , 515578 , 443374 , 475483 , 439532 , 512615 , 507245 , 397427 , 440726 , 489729 , 492395 , 601935 , 550531 , 514997 );
Copy
4
2.32 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
188737
383408
384142
397422
397427
397454
401552
403827
406684
409743
414048
418617
418757
420605
420864
422022
423780
424264
424397
426688
427183
427907
431608
432743
436063
439532
440726
443374
443916
443919
451540
455131
456033
456894
457875
459344
460407
462495
464272
464999
466907
468881
470125
470137
473124
473349
475483
480898
483093
486584
487498
488238
488948
489729
492395
492635
497725
503141
503403
504103
505243
506670
507245
507867
512615
514063
514997
515578
517545
517708
550531
561892
575180
601935
]
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 (188737 , 383408 , 384142 , 397422 , 397427 , 397454 , 401552 , 403827 , 406684 , 409743 , 414048 , 418617 , 418757 , 420605 , 420864 , 422022 , 423780 , 424264 , 424397 , 426688 , 427183 , 427907 , 431608 , 432743 , 436063 , 439532 , 440726 , 443374 , 443916 , 443919 , 451540 , 455131 , 456033 , 456894 , 457875 , 459344 , 460407 , 462495 , 464272 , 464999 , 466907 , 468881 , 470125 , 470137 , 473124 , 473349 , 475483 , 480898 , 483093 , 486584 , 487498 , 488238 , 488948 , 489729 , 492395 , 492635 , 497725 , 503141 , 503403 , 504103 , 505243 , 506670 , 507245 , 507867 , 512615 , 514063 , 514997 , 515578 , 517545 , 517708 , 550531 , 561892 , 575180 , 601935 );
Copy
5
84.34 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
188737
383408
384142
397422
397427
397454
401552
403827
406684
409743
414048
418617
418757
420605
420864
422022
423780
424264
424397
426688
427183
427907
431608
432743
436063
439532
440726
443374
443916
443919
451540
455131
456033
456894
457875
459344
460407
462495
464272
464999
466907
468881
470125
470137
473124
473349
475483
480898
483093
486584
487498
488238
488948
489729
492395
492635
497725
503141
503403
504103
505243
506670
507245
507867
512615
514063
514997
515578
517545
517708
550531
561892
575180
601935
]
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 (188737 , 383408 , 384142 , 397422 , 397427 , 397454 , 401552 , 403827 , 406684 , 409743 , 414048 , 418617 , 418757 , 420605 , 420864 , 422022 , 423780 , 424264 , 424397 , 426688 , 427183 , 427907 , 431608 , 432743 , 436063 , 439532 , 440726 , 443374 , 443916 , 443919 , 451540 , 455131 , 456033 , 456894 , 457875 , 459344 , 460407 , 462495 , 464272 , 464999 , 466907 , 468881 , 470125 , 470137 , 473124 , 473349 , 475483 , 480898 , 483093 , 486584 , 487498 , 488238 , 488948 , 489729 , 492395 , 492635 , 497725 , 503141 , 503403 , 504103 , 505243 , 506670 , 507245 , 507867 , 512615 , 514063 , 514997 , 515578 , 517545 , 517708 , 550531 , 561892 , 575180 , 601935 );
Copy