3
15.24 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
527106
543858
550315
632978
431446
497874
383356
416787
429523
430786
456120
476143
445733
468009
580941
678109
679803
788268
473461
388474
461624
411320
445751
510270
524628
677296
413944
433747
463864
531230
502890
605544
465613
476120
443476
452139
491253
497885
496900
417801
463842
530637
400936
530625
559389
644262
434001
425351
499817
282010
417787
522147
545698
418363
517743
420291
667748
707391
598026
637003
430404
576717
545614
604478
]
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 (527106 , 543858 , 550315 , 632978 , 431446 , 497874 , 383356 , 416787 , 429523 , 430786 , 456120 , 476143 , 445733 , 468009 , 580941 , 678109 , 679803 , 788268 , 473461 , 388474 , 461624 , 411320 , 445751 , 510270 , 524628 , 677296 , 413944 , 433747 , 463864 , 531230 , 502890 , 605544 , 465613 , 476120 , 443476 , 452139 , 491253 , 497885 , 496900 , 417801 , 463842 , 530637 , 400936 , 530625 , 559389 , 644262 , 434001 , 425351 , 499817 , 282010 , 417787 , 522147 , 545698 , 418363 , 517743 , 420291 , 667748 , 707391 , 598026 , 637003 , 430404 , 576717 , 545614 , 604478 );
Copy
4
3.25 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
282010
383356
388474
400936
411320
413944
416787
417787
417801
418363
420291
425351
429523
430404
430786
431446
433747
434001
443476
445733
445751
452139
456120
461624
463842
463864
465613
468009
473461
476120
476143
491253
496900
497874
497885
499817
502890
510270
517743
522147
524628
527106
530625
530637
531230
543858
545614
545698
550315
559389
576717
580941
598026
604478
605544
632978
637003
644262
667748
677296
678109
679803
707391
788268
]
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 (282010 , 383356 , 388474 , 400936 , 411320 , 413944 , 416787 , 417787 , 417801 , 418363 , 420291 , 425351 , 429523 , 430404 , 430786 , 431446 , 433747 , 434001 , 443476 , 445733 , 445751 , 452139 , 456120 , 461624 , 463842 , 463864 , 465613 , 468009 , 473461 , 476120 , 476143 , 491253 , 496900 , 497874 , 497885 , 499817 , 502890 , 510270 , 517743 , 522147 , 524628 , 527106 , 530625 , 530637 , 531230 , 543858 , 545614 , 545698 , 550315 , 559389 , 576717 , 580941 , 598026 , 604478 , 605544 , 632978 , 637003 , 644262 , 667748 , 677296 , 678109 , 679803 , 707391 , 788268 );
Copy
5
76.19 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
282010
383356
388474
400936
411320
413944
416787
417787
417801
418363
420291
425351
429523
430404
430786
431446
433747
434001
443476
445733
445751
452139
456120
461624
463842
463864
465613
468009
473461
476120
476143
491253
496900
497874
497885
499817
502890
510270
517743
522147
524628
527106
530625
530637
531230
543858
545614
545698
550315
559389
576717
580941
598026
604478
605544
632978
637003
644262
667748
677296
678109
679803
707391
788268
]
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 (282010 , 383356 , 388474 , 400936 , 411320 , 413944 , 416787 , 417787 , 417801 , 418363 , 420291 , 425351 , 429523 , 430404 , 430786 , 431446 , 433747 , 434001 , 443476 , 445733 , 445751 , 452139 , 456120 , 461624 , 463842 , 463864 , 465613 , 468009 , 473461 , 476120 , 476143 , 491253 , 496900 , 497874 , 497885 , 499817 , 502890 , 510270 , 517743 , 522147 , 524628 , 527106 , 530625 , 530637 , 531230 , 543858 , 545614 , 545698 , 550315 , 559389 , 576717 , 580941 , 598026 , 604478 , 605544 , 632978 , 637003 , 644262 , 667748 , 677296 , 678109 , 679803 , 707391 , 788268 );
Copy