7
10.12 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
469638
467939
467435
464659
462886
460559
460539
460210
459515
459398
459151
459135
458435
458423
458296
457194
456981
456743
456726
456007
455974
455147
454865
453422
452626
452222
451299
450250
449652
449231
448973
447231
445736
445356
439683
439439
438411
438333
437592
437556
437178
437121
435734
435558
434859
434411
428603
428100
426519
423438
421518
419822
419765
419640
418877
418719
418182
416025
414184
413123
407791
402592
401228
397953
397211
170225
154497
]
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 (469638 , 467939 , 467435 , 464659 , 462886 , 460559 , 460539 , 460210 , 459515 , 459398 , 459151 , 459135 , 458435 , 458423 , 458296 , 457194 , 456981 , 456743 , 456726 , 456007 , 455974 , 455147 , 454865 , 453422 , 452626 , 452222 , 451299 , 450250 , 449652 , 449231 , 448973 , 447231 , 445736 , 445356 , 439683 , 439439 , 438411 , 438333 , 437592 , 437556 , 437178 , 437121 , 435734 , 435558 , 434859 , 434411 , 428603 , 428100 , 426519 , 423438 , 421518 , 419822 , 419765 , 419640 , 418877 , 418719 , 418182 , 416025 , 414184 , 413123 , 407791 , 402592 , 401228 , 397953 , 397211 , 170225 , 154497 );
Copy
8
2.78 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
154497
170225
397211
397953
401228
402592
407791
413123
414184
416025
418182
418719
418877
419640
419765
419822
421518
423438
426519
428100
428603
434411
434859
435558
435734
437121
437178
437556
437592
438333
438411
439439
439683
445356
445736
447231
448973
449231
449652
450250
451299
452222
452626
453422
454865
455147
455974
456007
456726
456743
456981
457194
458296
458423
458435
459135
459151
459398
459515
460210
460539
460559
462886
464659
467435
467939
469638
]
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 (154497 , 170225 , 397211 , 397953 , 401228 , 402592 , 407791 , 413123 , 414184 , 416025 , 418182 , 418719 , 418877 , 419640 , 419765 , 419822 , 421518 , 423438 , 426519 , 428100 , 428603 , 434411 , 434859 , 435558 , 435734 , 437121 , 437178 , 437556 , 437592 , 438333 , 438411 , 439439 , 439683 , 445356 , 445736 , 447231 , 448973 , 449231 , 449652 , 450250 , 451299 , 452222 , 452626 , 453422 , 454865 , 455147 , 455974 , 456007 , 456726 , 456743 , 456981 , 457194 , 458296 , 458423 , 458435 , 459135 , 459151 , 459398 , 459515 , 460210 , 460539 , 460559 , 462886 , 464659 , 467435 , 467939 , 469638 );
Copy
9
69.89 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
154497
170225
397211
397953
401228
402592
407791
413123
414184
416025
418182
418719
418877
419640
419765
419822
421518
423438
426519
428100
428603
434411
434859
435558
435734
437121
437178
437556
437592
438333
438411
439439
439683
445356
445736
447231
448973
449231
449652
450250
451299
452222
452626
453422
454865
455147
455974
456007
456726
456743
456981
457194
458296
458423
458435
459135
459151
459398
459515
460210
460539
460559
462886
464659
467435
467939
469638
]
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 (154497 , 170225 , 397211 , 397953 , 401228 , 402592 , 407791 , 413123 , 414184 , 416025 , 418182 , 418719 , 418877 , 419640 , 419765 , 419822 , 421518 , 423438 , 426519 , 428100 , 428603 , 434411 , 434859 , 435558 , 435734 , 437121 , 437178 , 437556 , 437592 , 438333 , 438411 , 439439 , 439683 , 445356 , 445736 , 447231 , 448973 , 449231 , 449652 , 450250 , 451299 , 452222 , 452626 , 453422 , 454865 , 455147 , 455974 , 456007 , 456726 , 456743 , 456981 , 457194 , 458296 , 458423 , 458435 , 459135 , 459151 , 459398 , 459515 , 460210 , 460539 , 460559 , 462886 , 464659 , 467435 , 467939 , 469638 );
Copy