3
12.98 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
604849
618754
502756
459535
532942
502147
561389
809930
424385
434209
621960
445529
482686
567490
552266
528038
713564
389700
486901
507591
480351
530912
578411
515377
510519
792555
524696
649953
502755
809147
445416
518599
513965
418941
447896
541748
712891
599905
496283
703502
533013
514252
532662
541647
543840
25461
534843
501443
541848
579592
536695
522345
542321
574432
516501
513951
593596
637413
525538
519642
437996
507543
616205
584352
675081
420308
407350
410687
413768
88591
421836
414135
584644
444916
]
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 (604849 , 618754 , 502756 , 459535 , 532942 , 502147 , 561389 , 809930 , 424385 , 434209 , 621960 , 445529 , 482686 , 567490 , 552266 , 528038 , 713564 , 389700 , 486901 , 507591 , 480351 , 530912 , 578411 , 515377 , 510519 , 792555 , 524696 , 649953 , 502755 , 809147 , 445416 , 518599 , 513965 , 418941 , 447896 , 541748 , 712891 , 599905 , 496283 , 703502 , 533013 , 514252 , 532662 , 541647 , 543840 , 25461 , 534843 , 501443 , 541848 , 579592 , 536695 , 522345 , 542321 , 574432 , 516501 , 513951 , 593596 , 637413 , 525538 , 519642 , 437996 , 507543 , 616205 , 584352 , 675081 , 420308 , 407350 , 410687 , 413768 , 88591 , 421836 , 414135 , 584644 , 444916 );
Copy
4
2.63 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
25461
88591
389700
407350
410687
413768
414135
418941
420308
421836
424385
434209
437996
444916
445416
445529
447896
459535
480351
482686
486901
496283
501443
502147
502755
502756
507543
507591
510519
513951
513965
514252
515377
516501
518599
519642
522345
524696
525538
528038
530912
532662
532942
533013
534843
536695
541647
541748
541848
542321
543840
552266
561389
567490
574432
578411
579592
584352
584644
593596
599905
604849
616205
618754
621960
637413
649953
675081
703502
712891
713564
792555
809147
809930
]
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 (25461 , 88591 , 389700 , 407350 , 410687 , 413768 , 414135 , 418941 , 420308 , 421836 , 424385 , 434209 , 437996 , 444916 , 445416 , 445529 , 447896 , 459535 , 480351 , 482686 , 486901 , 496283 , 501443 , 502147 , 502755 , 502756 , 507543 , 507591 , 510519 , 513951 , 513965 , 514252 , 515377 , 516501 , 518599 , 519642 , 522345 , 524696 , 525538 , 528038 , 530912 , 532662 , 532942 , 533013 , 534843 , 536695 , 541647 , 541748 , 541848 , 542321 , 543840 , 552266 , 561389 , 567490 , 574432 , 578411 , 579592 , 584352 , 584644 , 593596 , 599905 , 604849 , 616205 , 618754 , 621960 , 637413 , 649953 , 675081 , 703502 , 712891 , 713564 , 792555 , 809147 , 809930 );
Copy
5
115.02 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
25461
88591
389700
407350
410687
413768
414135
418941
420308
421836
424385
434209
437996
444916
445416
445529
447896
459535
480351
482686
486901
496283
501443
502147
502755
502756
507543
507591
510519
513951
513965
514252
515377
516501
518599
519642
522345
524696
525538
528038
530912
532662
532942
533013
534843
536695
541647
541748
541848
542321
543840
552266
561389
567490
574432
578411
579592
584352
584644
593596
599905
604849
616205
618754
621960
637413
649953
675081
703502
712891
713564
792555
809147
809930
]
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 (25461 , 88591 , 389700 , 407350 , 410687 , 413768 , 414135 , 418941 , 420308 , 421836 , 424385 , 434209 , 437996 , 444916 , 445416 , 445529 , 447896 , 459535 , 480351 , 482686 , 486901 , 496283 , 501443 , 502147 , 502755 , 502756 , 507543 , 507591 , 510519 , 513951 , 513965 , 514252 , 515377 , 516501 , 518599 , 519642 , 522345 , 524696 , 525538 , 528038 , 530912 , 532662 , 532942 , 533013 , 534843 , 536695 , 541647 , 541748 , 541848 , 542321 , 543840 , 552266 , 561389 , 567490 , 574432 , 578411 , 579592 , 584352 , 584644 , 593596 , 599905 , 604849 , 616205 , 618754 , 621960 , 637413 , 649953 , 675081 , 703502 , 712891 , 713564 , 792555 , 809147 , 809930 );
Copy