7
8.65 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
650788
576051
574854
562069
559868
558297
556656
554343
550629
550626
545531
545527
542469
529804
529362
527002
526768
526729
522443
518285
517047
515068
502495
498442
498317
495148
488301
482778
474864
470264
469575
467032
466789
466348
460172
453127
451937
448309
447834
447806
447242
446622
445666
442118
439684
430332
430275
429982
424662
422686
420154
419843
418049
413228
412649
411959
411958
411742
408424
407790
403049
402081
400485
400455
400444
393728
386576
383338
383130
382777
382724
381853
304544
38313
]
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 (650788 , 576051 , 574854 , 562069 , 559868 , 558297 , 556656 , 554343 , 550629 , 550626 , 545531 , 545527 , 542469 , 529804 , 529362 , 527002 , 526768 , 526729 , 522443 , 518285 , 517047 , 515068 , 502495 , 498442 , 498317 , 495148 , 488301 , 482778 , 474864 , 470264 , 469575 , 467032 , 466789 , 466348 , 460172 , 453127 , 451937 , 448309 , 447834 , 447806 , 447242 , 446622 , 445666 , 442118 , 439684 , 430332 , 430275 , 429982 , 424662 , 422686 , 420154 , 419843 , 418049 , 413228 , 412649 , 411959 , 411958 , 411742 , 408424 , 407790 , 403049 , 402081 , 400485 , 400455 , 400444 , 393728 , 386576 , 383338 , 383130 , 382777 , 382724 , 381853 , 304544 , 38313 );
Copy
8
2.06 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
38313
304544
381853
382724
382777
383130
383338
386576
393728
400444
400455
400485
402081
403049
407790
408424
411742
411958
411959
412649
413228
418049
419843
420154
422686
424662
429982
430275
430332
439684
442118
445666
446622
447242
447806
447834
448309
451937
453127
460172
466348
466789
467032
469575
470264
474864
482778
488301
495148
498317
498442
502495
515068
517047
518285
522443
526729
526768
527002
529362
529804
542469
545527
545531
550626
550629
554343
556656
558297
559868
562069
574854
576051
650788
]
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 (38313 , 304544 , 381853 , 382724 , 382777 , 383130 , 383338 , 386576 , 393728 , 400444 , 400455 , 400485 , 402081 , 403049 , 407790 , 408424 , 411742 , 411958 , 411959 , 412649 , 413228 , 418049 , 419843 , 420154 , 422686 , 424662 , 429982 , 430275 , 430332 , 439684 , 442118 , 445666 , 446622 , 447242 , 447806 , 447834 , 448309 , 451937 , 453127 , 460172 , 466348 , 466789 , 467032 , 469575 , 470264 , 474864 , 482778 , 488301 , 495148 , 498317 , 498442 , 502495 , 515068 , 517047 , 518285 , 522443 , 526729 , 526768 , 527002 , 529362 , 529804 , 542469 , 545527 , 545531 , 550626 , 550629 , 554343 , 556656 , 558297 , 559868 , 562069 , 574854 , 576051 , 650788 );
Copy
9
102.49 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
38313
304544
381853
382724
382777
383130
383338
386576
393728
400444
400455
400485
402081
403049
407790
408424
411742
411958
411959
412649
413228
418049
419843
420154
422686
424662
429982
430275
430332
439684
442118
445666
446622
447242
447806
447834
448309
451937
453127
460172
466348
466789
467032
469575
470264
474864
482778
488301
495148
498317
498442
502495
515068
517047
518285
522443
526729
526768
527002
529362
529804
542469
545527
545531
550626
550629
554343
556656
558297
559868
562069
574854
576051
650788
]
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 (38313 , 304544 , 381853 , 382724 , 382777 , 383130 , 383338 , 386576 , 393728 , 400444 , 400455 , 400485 , 402081 , 403049 , 407790 , 408424 , 411742 , 411958 , 411959 , 412649 , 413228 , 418049 , 419843 , 420154 , 422686 , 424662 , 429982 , 430275 , 430332 , 439684 , 442118 , 445666 , 446622 , 447242 , 447806 , 447834 , 448309 , 451937 , 453127 , 460172 , 466348 , 466789 , 467032 , 469575 , 470264 , 474864 , 482778 , 488301 , 495148 , 498317 , 498442 , 502495 , 515068 , 517047 , 518285 , 522443 , 526729 , 526768 , 527002 , 529362 , 529804 , 542469 , 545527 , 545531 , 550626 , 550629 , 554343 , 556656 , 558297 , 559868 , 562069 , 574854 , 576051 , 650788 );
Copy