3
15.03 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
642128
387070
383554
427007
396451
397352
33236
457752
435874
463781
454741
382292
435607
577952
383495
418316
404495
425839
463231
445055
430737
452701
473774
403229
400100
419293
403556
407878
456802
434076
456407
517221
572372
389110
405324
503647
518286
473797
560853
513947
437838
519496
529524
457806
461071
624734
484498
446344
425749
464391
475914
404292
424817
462845
509970
410657
580296
442829
452061
421207
429990
636535
512885
419627
526022
651954
597474
528252
610695
589544
615801
621125
522049
609196
]
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 (642128 , 387070 , 383554 , 427007 , 396451 , 397352 , 33236 , 457752 , 435874 , 463781 , 454741 , 382292 , 435607 , 577952 , 383495 , 418316 , 404495 , 425839 , 463231 , 445055 , 430737 , 452701 , 473774 , 403229 , 400100 , 419293 , 403556 , 407878 , 456802 , 434076 , 456407 , 517221 , 572372 , 389110 , 405324 , 503647 , 518286 , 473797 , 560853 , 513947 , 437838 , 519496 , 529524 , 457806 , 461071 , 624734 , 484498 , 446344 , 425749 , 464391 , 475914 , 404292 , 424817 , 462845 , 509970 , 410657 , 580296 , 442829 , 452061 , 421207 , 429990 , 636535 , 512885 , 419627 , 526022 , 651954 , 597474 , 528252 , 610695 , 589544 , 615801 , 621125 , 522049 , 609196 );
Copy
4
3.14 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
33236
382292
383495
383554
387070
389110
396451
397352
400100
403229
403556
404292
404495
405324
407878
410657
418316
419293
419627
421207
424817
425749
425839
427007
429990
430737
434076
435607
435874
437838
442829
445055
446344
452061
452701
454741
456407
456802
457752
457806
461071
462845
463231
463781
464391
473774
473797
475914
484498
503647
509970
512885
513947
517221
518286
519496
522049
526022
528252
529524
560853
572372
577952
580296
589544
597474
609196
610695
615801
621125
624734
636535
642128
651954
]
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 (33236 , 382292 , 383495 , 383554 , 387070 , 389110 , 396451 , 397352 , 400100 , 403229 , 403556 , 404292 , 404495 , 405324 , 407878 , 410657 , 418316 , 419293 , 419627 , 421207 , 424817 , 425749 , 425839 , 427007 , 429990 , 430737 , 434076 , 435607 , 435874 , 437838 , 442829 , 445055 , 446344 , 452061 , 452701 , 454741 , 456407 , 456802 , 457752 , 457806 , 461071 , 462845 , 463231 , 463781 , 464391 , 473774 , 473797 , 475914 , 484498 , 503647 , 509970 , 512885 , 513947 , 517221 , 518286 , 519496 , 522049 , 526022 , 528252 , 529524 , 560853 , 572372 , 577952 , 580296 , 589544 , 597474 , 609196 , 610695 , 615801 , 621125 , 624734 , 636535 , 642128 , 651954 );
Copy
5
82.96 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
33236
382292
383495
383554
387070
389110
396451
397352
400100
403229
403556
404292
404495
405324
407878
410657
418316
419293
419627
421207
424817
425749
425839
427007
429990
430737
434076
435607
435874
437838
442829
445055
446344
452061
452701
454741
456407
456802
457752
457806
461071
462845
463231
463781
464391
473774
473797
475914
484498
503647
509970
512885
513947
517221
518286
519496
522049
526022
528252
529524
560853
572372
577952
580296
589544
597474
609196
610695
615801
621125
624734
636535
642128
651954
]
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 (33236 , 382292 , 383495 , 383554 , 387070 , 389110 , 396451 , 397352 , 400100 , 403229 , 403556 , 404292 , 404495 , 405324 , 407878 , 410657 , 418316 , 419293 , 419627 , 421207 , 424817 , 425749 , 425839 , 427007 , 429990 , 430737 , 434076 , 435607 , 435874 , 437838 , 442829 , 445055 , 446344 , 452061 , 452701 , 454741 , 456407 , 456802 , 457752 , 457806 , 461071 , 462845 , 463231 , 463781 , 464391 , 473774 , 473797 , 475914 , 484498 , 503647 , 509970 , 512885 , 513947 , 517221 , 518286 , 519496 , 522049 , 526022 , 528252 , 529524 , 560853 , 572372 , 577952 , 580296 , 589544 , 597474 , 609196 , 610695 , 615801 , 621125 , 624734 , 636535 , 642128 , 651954 );
Copy