3
14.75 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
562398
532266
529704
532170
566002
580388
583142
646872
575329
596234
592891
810698
766896
476091
425330
442325
442339
471699
526842
502748
519735
516483
537020
495434
526994
595054
457946
475575
524296
663297
535374
488457
578657
651038
680037
646432
689755
603055
614742
419989
469554
521520
523907
521287
516787
442301
442613
457034
532604
690803
782516
745312
480372
485216
525850
442332
447182
612335
786120
511595
497311
527007
476079
659216
599359
586419
594228
430630
556987
522035
]
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 (562398 , 532266 , 529704 , 532170 , 566002 , 580388 , 583142 , 646872 , 575329 , 596234 , 592891 , 810698 , 766896 , 476091 , 425330 , 442325 , 442339 , 471699 , 526842 , 502748 , 519735 , 516483 , 537020 , 495434 , 526994 , 595054 , 457946 , 475575 , 524296 , 663297 , 535374 , 488457 , 578657 , 651038 , 680037 , 646432 , 689755 , 603055 , 614742 , 419989 , 469554 , 521520 , 523907 , 521287 , 516787 , 442301 , 442613 , 457034 , 532604 , 690803 , 782516 , 745312 , 480372 , 485216 , 525850 , 442332 , 447182 , 612335 , 786120 , 511595 , 497311 , 527007 , 476079 , 659216 , 599359 , 586419 , 594228 , 430630 , 556987 , 522035 );
Copy
4
2.47 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
419989
425330
430630
442301
442325
442332
442339
442613
447182
457034
457946
469554
471699
475575
476079
476091
480372
485216
488457
495434
497311
502748
511595
516483
516787
519735
521287
521520
522035
523907
524296
525850
526842
526994
527007
529704
532170
532266
532604
535374
537020
556987
562398
566002
575329
578657
580388
583142
586419
592891
594228
595054
596234
599359
603055
612335
614742
646432
646872
651038
659216
663297
680037
689755
690803
745312
766896
782516
786120
810698
]
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 (419989 , 425330 , 430630 , 442301 , 442325 , 442332 , 442339 , 442613 , 447182 , 457034 , 457946 , 469554 , 471699 , 475575 , 476079 , 476091 , 480372 , 485216 , 488457 , 495434 , 497311 , 502748 , 511595 , 516483 , 516787 , 519735 , 521287 , 521520 , 522035 , 523907 , 524296 , 525850 , 526842 , 526994 , 527007 , 529704 , 532170 , 532266 , 532604 , 535374 , 537020 , 556987 , 562398 , 566002 , 575329 , 578657 , 580388 , 583142 , 586419 , 592891 , 594228 , 595054 , 596234 , 599359 , 603055 , 612335 , 614742 , 646432 , 646872 , 651038 , 659216 , 663297 , 680037 , 689755 , 690803 , 745312 , 766896 , 782516 , 786120 , 810698 );
Copy
5
86.24 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
419989
425330
430630
442301
442325
442332
442339
442613
447182
457034
457946
469554
471699
475575
476079
476091
480372
485216
488457
495434
497311
502748
511595
516483
516787
519735
521287
521520
522035
523907
524296
525850
526842
526994
527007
529704
532170
532266
532604
535374
537020
556987
562398
566002
575329
578657
580388
583142
586419
592891
594228
595054
596234
599359
603055
612335
614742
646432
646872
651038
659216
663297
680037
689755
690803
745312
766896
782516
786120
810698
]
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 (419989 , 425330 , 430630 , 442301 , 442325 , 442332 , 442339 , 442613 , 447182 , 457034 , 457946 , 469554 , 471699 , 475575 , 476079 , 476091 , 480372 , 485216 , 488457 , 495434 , 497311 , 502748 , 511595 , 516483 , 516787 , 519735 , 521287 , 521520 , 522035 , 523907 , 524296 , 525850 , 526842 , 526994 , 527007 , 529704 , 532170 , 532266 , 532604 , 535374 , 537020 , 556987 , 562398 , 566002 , 575329 , 578657 , 580388 , 583142 , 586419 , 592891 , 594228 , 595054 , 596234 , 599359 , 603055 , 612335 , 614742 , 646432 , 646872 , 651038 , 659216 , 663297 , 680037 , 689755 , 690803 , 745312 , 766896 , 782516 , 786120 , 810698 );
Copy