3
11.58 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
515419
16882
88591
806794
415319
352189
436132
401204
468219
424216
478055
502468
502465
738820
713504
610683
766860
564289
564295
815699
813819
564291
686106
799693
559294
752697
713508
695868
695870
148814
591692
391961
515357
706359
290847
693860
736519
449083
418989
752672
313463
468733
439558
416681
416694
497695
429859
545369
466637
565246
444069
541423
639735
453137
500799
586407
719001
606587
629934
584832
546200
381830
666865
543840
420203
565249
410682
526612
425398
439653
439529
469027
]
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 (515419 , 16882 , 88591 , 806794 , 415319 , 352189 , 436132 , 401204 , 468219 , 424216 , 478055 , 502468 , 502465 , 738820 , 713504 , 610683 , 766860 , 564289 , 564295 , 815699 , 813819 , 564291 , 686106 , 799693 , 559294 , 752697 , 713508 , 695868 , 695870 , 148814 , 591692 , 391961 , 515357 , 706359 , 290847 , 693860 , 736519 , 449083 , 418989 , 752672 , 313463 , 468733 , 439558 , 416681 , 416694 , 497695 , 429859 , 545369 , 466637 , 565246 , 444069 , 541423 , 639735 , 453137 , 500799 , 586407 , 719001 , 606587 , 629934 , 584832 , 546200 , 381830 , 666865 , 543840 , 420203 , 565249 , 410682 , 526612 , 425398 , 439653 , 439529 , 469027 );
Copy
4
3.44 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
16882
88591
148814
290847
313463
352189
381830
391961
401204
410682
415319
416681
416694
418989
420203
424216
425398
429859
436132
439529
439558
439653
444069
449083
453137
466637
468219
468733
469027
478055
497695
500799
502465
502468
515357
515419
526612
541423
543840
545369
546200
559294
564289
564291
564295
565246
565249
584832
586407
591692
606587
610683
629934
639735
666865
686106
693860
695868
695870
706359
713504
713508
719001
736519
738820
752672
752697
766860
799693
806794
813819
815699
]
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 (16882 , 88591 , 148814 , 290847 , 313463 , 352189 , 381830 , 391961 , 401204 , 410682 , 415319 , 416681 , 416694 , 418989 , 420203 , 424216 , 425398 , 429859 , 436132 , 439529 , 439558 , 439653 , 444069 , 449083 , 453137 , 466637 , 468219 , 468733 , 469027 , 478055 , 497695 , 500799 , 502465 , 502468 , 515357 , 515419 , 526612 , 541423 , 543840 , 545369 , 546200 , 559294 , 564289 , 564291 , 564295 , 565246 , 565249 , 584832 , 586407 , 591692 , 606587 , 610683 , 629934 , 639735 , 666865 , 686106 , 693860 , 695868 , 695870 , 706359 , 713504 , 713508 , 719001 , 736519 , 738820 , 752672 , 752697 , 766860 , 799693 , 806794 , 813819 , 815699 );
Copy
5
97.31 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
16882
88591
148814
290847
313463
352189
381830
391961
401204
410682
415319
416681
416694
418989
420203
424216
425398
429859
436132
439529
439558
439653
444069
449083
453137
466637
468219
468733
469027
478055
497695
500799
502465
502468
515357
515419
526612
541423
543840
545369
546200
559294
564289
564291
564295
565246
565249
584832
586407
591692
606587
610683
629934
639735
666865
686106
693860
695868
695870
706359
713504
713508
719001
736519
738820
752672
752697
766860
799693
806794
813819
815699
]
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 (16882 , 88591 , 148814 , 290847 , 313463 , 352189 , 381830 , 391961 , 401204 , 410682 , 415319 , 416681 , 416694 , 418989 , 420203 , 424216 , 425398 , 429859 , 436132 , 439529 , 439558 , 439653 , 444069 , 449083 , 453137 , 466637 , 468219 , 468733 , 469027 , 478055 , 497695 , 500799 , 502465 , 502468 , 515357 , 515419 , 526612 , 541423 , 543840 , 545369 , 546200 , 559294 , 564289 , 564291 , 564295 , 565246 , 565249 , 584832 , 586407 , 591692 , 606587 , 610683 , 629934 , 639735 , 666865 , 686106 , 693860 , 695868 , 695870 , 706359 , 713504 , 713508 , 719001 , 736519 , 738820 , 752672 , 752697 , 766860 , 799693 , 806794 , 813819 , 815699 );
Copy