4
14.82 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
439855
421162
439837
585003
525142
445331
443555
443589
523409
421373
443607
439912
443487
441022
394136
396066
398930
398604
439829
401264
439838
443489
443569
391635
439826
439804
439852
439909
443605
454938
463503
431449
439924
443544
443548
445267
455844
439840
443499
457574
455830
421108
441015
443567
443572
459482
439910
443514
458142
439906
439823
439858
439886
443481
443482
443590
443987
441013
434456
431450
455846
401857
439777
439825
439844
439854
439845
434275
443503
443559
431448
443491
439925
473139
]
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 (439855 , 421162 , 439837 , 585003 , 525142 , 445331 , 443555 , 443589 , 523409 , 421373 , 443607 , 439912 , 443487 , 441022 , 394136 , 396066 , 398930 , 398604 , 439829 , 401264 , 439838 , 443489 , 443569 , 391635 , 439826 , 439804 , 439852 , 439909 , 443605 , 454938 , 463503 , 431449 , 439924 , 443544 , 443548 , 445267 , 455844 , 439840 , 443499 , 457574 , 455830 , 421108 , 441015 , 443567 , 443572 , 459482 , 439910 , 443514 , 458142 , 439906 , 439823 , 439858 , 439886 , 443481 , 443482 , 443590 , 443987 , 441013 , 434456 , 431450 , 455846 , 401857 , 439777 , 439825 , 439844 , 439854 , 439845 , 434275 , 443503 , 443559 , 431448 , 443491 , 439925 , 473139 );
Copy
5
211.77 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
391635
394136
396066
398604
398930
401264
401857
421108
421162
421373
431448
431449
431450
434275
434456
439777
439804
439823
439825
439826
439829
439837
439838
439840
439844
439845
439852
439854
439855
439858
439886
439906
439909
439910
439912
439924
439925
441013
441015
441022
443481
443482
443487
443489
443491
443499
443503
443514
443544
443548
443555
443559
443567
443569
443572
443589
443590
443605
443607
443987
445267
445331
454938
455830
455844
455846
457574
458142
459482
463503
473139
523409
525142
585003
]
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 (391635 , 394136 , 396066 , 398604 , 398930 , 401264 , 401857 , 421108 , 421162 , 421373 , 431448 , 431449 , 431450 , 434275 , 434456 , 439777 , 439804 , 439823 , 439825 , 439826 , 439829 , 439837 , 439838 , 439840 , 439844 , 439845 , 439852 , 439854 , 439855 , 439858 , 439886 , 439906 , 439909 , 439910 , 439912 , 439924 , 439925 , 441013 , 441015 , 441022 , 443481 , 443482 , 443487 , 443489 , 443491 , 443499 , 443503 , 443514 , 443544 , 443548 , 443555 , 443559 , 443567 , 443569 , 443572 , 443589 , 443590 , 443605 , 443607 , 443987 , 445267 , 445331 , 454938 , 455830 , 455844 , 455846 , 457574 , 458142 , 459482 , 463503 , 473139 , 523409 , 525142 , 585003 );
Copy
6
142.03 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
391635
394136
396066
398604
398930
401264
401857
421108
421162
421373
431448
431449
431450
434275
434456
439777
439804
439823
439825
439826
439829
439837
439838
439840
439844
439845
439852
439854
439855
439858
439886
439906
439909
439910
439912
439924
439925
441013
441015
441022
443481
443482
443487
443489
443491
443499
443503
443514
443544
443548
443555
443559
443567
443569
443572
443589
443590
443605
443607
443987
445267
445331
454938
455830
455844
455846
457574
458142
459482
463503
473139
523409
525142
585003
]
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 (391635 , 394136 , 396066 , 398604 , 398930 , 401264 , 401857 , 421108 , 421162 , 421373 , 431448 , 431449 , 431450 , 434275 , 434456 , 439777 , 439804 , 439823 , 439825 , 439826 , 439829 , 439837 , 439838 , 439840 , 439844 , 439845 , 439852 , 439854 , 439855 , 439858 , 439886 , 439906 , 439909 , 439910 , 439912 , 439924 , 439925 , 441013 , 441015 , 441022 , 443481 , 443482 , 443487 , 443489 , 443491 , 443499 , 443503 , 443514 , 443544 , 443548 , 443555 , 443559 , 443567 , 443569 , 443572 , 443589 , 443590 , 443605 , 443607 , 443987 , 445267 , 445331 , 454938 , 455830 , 455844 , 455846 , 457574 , 458142 , 459482 , 463503 , 473139 , 523409 , 525142 , 585003 );
Copy