3
13.02 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
494671
496112
514817
534557
549236
557955
584315
658445
709895
655587
661915
663441
678571
571778
597738
628185
599559
601877
610235
788542
480788
421917
444187
512476
514859
482909
485223
465609
516221
510930
508257
535940
521294
544464
577733
586563
594414
625242
622667
602402
436758
435064
467628
473313
422187
499695
514682
489073
523837
528565
527756
561813
444740
437583
457832
515868
535436
460327
554922
588280
633176
797170
437658
420352
536436
505928
521504
599446
517549
445890
613463
598920
574200
]
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 (494671 , 496112 , 514817 , 534557 , 549236 , 557955 , 584315 , 658445 , 709895 , 655587 , 661915 , 663441 , 678571 , 571778 , 597738 , 628185 , 599559 , 601877 , 610235 , 788542 , 480788 , 421917 , 444187 , 512476 , 514859 , 482909 , 485223 , 465609 , 516221 , 510930 , 508257 , 535940 , 521294 , 544464 , 577733 , 586563 , 594414 , 625242 , 622667 , 602402 , 436758 , 435064 , 467628 , 473313 , 422187 , 499695 , 514682 , 489073 , 523837 , 528565 , 527756 , 561813 , 444740 , 437583 , 457832 , 515868 , 535436 , 460327 , 554922 , 588280 , 633176 , 797170 , 437658 , 420352 , 536436 , 505928 , 521504 , 599446 , 517549 , 445890 , 613463 , 598920 , 574200 );
Copy
4
2.76 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
420352
421917
422187
435064
436758
437583
437658
444187
444740
445890
457832
460327
465609
467628
473313
480788
482909
485223
489073
494671
496112
499695
505928
508257
510930
512476
514682
514817
514859
515868
516221
517549
521294
521504
523837
527756
528565
534557
535436
535940
536436
544464
549236
554922
557955
561813
571778
574200
577733
584315
586563
588280
594414
597738
598920
599446
599559
601877
602402
610235
613463
622667
625242
628185
633176
655587
658445
661915
663441
678571
709895
788542
797170
]
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 (420352 , 421917 , 422187 , 435064 , 436758 , 437583 , 437658 , 444187 , 444740 , 445890 , 457832 , 460327 , 465609 , 467628 , 473313 , 480788 , 482909 , 485223 , 489073 , 494671 , 496112 , 499695 , 505928 , 508257 , 510930 , 512476 , 514682 , 514817 , 514859 , 515868 , 516221 , 517549 , 521294 , 521504 , 523837 , 527756 , 528565 , 534557 , 535436 , 535940 , 536436 , 544464 , 549236 , 554922 , 557955 , 561813 , 571778 , 574200 , 577733 , 584315 , 586563 , 588280 , 594414 , 597738 , 598920 , 599446 , 599559 , 601877 , 602402 , 610235 , 613463 , 622667 , 625242 , 628185 , 633176 , 655587 , 658445 , 661915 , 663441 , 678571 , 709895 , 788542 , 797170 );
Copy
5
100.11 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
420352
421917
422187
435064
436758
437583
437658
444187
444740
445890
457832
460327
465609
467628
473313
480788
482909
485223
489073
494671
496112
499695
505928
508257
510930
512476
514682
514817
514859
515868
516221
517549
521294
521504
523837
527756
528565
534557
535436
535940
536436
544464
549236
554922
557955
561813
571778
574200
577733
584315
586563
588280
594414
597738
598920
599446
599559
601877
602402
610235
613463
622667
625242
628185
633176
655587
658445
661915
663441
678571
709895
788542
797170
]
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 (420352 , 421917 , 422187 , 435064 , 436758 , 437583 , 437658 , 444187 , 444740 , 445890 , 457832 , 460327 , 465609 , 467628 , 473313 , 480788 , 482909 , 485223 , 489073 , 494671 , 496112 , 499695 , 505928 , 508257 , 510930 , 512476 , 514682 , 514817 , 514859 , 515868 , 516221 , 517549 , 521294 , 521504 , 523837 , 527756 , 528565 , 534557 , 535436 , 535940 , 536436 , 544464 , 549236 , 554922 , 557955 , 561813 , 571778 , 574200 , 577733 , 584315 , 586563 , 588280 , 594414 , 597738 , 598920 , 599446 , 599559 , 601877 , 602402 , 610235 , 613463 , 622667 , 625242 , 628185 , 633176 , 655587 , 658445 , 661915 , 663441 , 678571 , 709895 , 788542 , 797170 );
Copy