3
10.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
449643
486228
406040
426840
421435
603144
388036
456966
454938
579106
560358
584815
418992
527904
529456
422043
446381
556492
677172
773924
775893
485878
413518
529188
532953
556116
425737
476510
451238
479469
426663
468809
428319
435968
451840
524908
450921
595290
779567
422824
441195
650056
464526
517329
383641
501494
520427
529206
421411
437285
432962
590633
423317
517358
515613
432831
496636
514404
548304
425260
534968
587056
430556
541215
402722
550829
522035
]
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 (449643 , 486228 , 406040 , 426840 , 421435 , 603144 , 388036 , 456966 , 454938 , 579106 , 560358 , 584815 , 418992 , 527904 , 529456 , 422043 , 446381 , 556492 , 677172 , 773924 , 775893 , 485878 , 413518 , 529188 , 532953 , 556116 , 425737 , 476510 , 451238 , 479469 , 426663 , 468809 , 428319 , 435968 , 451840 , 524908 , 450921 , 595290 , 779567 , 422824 , 441195 , 650056 , 464526 , 517329 , 383641 , 501494 , 520427 , 529206 , 421411 , 437285 , 432962 , 590633 , 423317 , 517358 , 515613 , 432831 , 496636 , 514404 , 548304 , 425260 , 534968 , 587056 , 430556 , 541215 , 402722 , 550829 , 522035 );
Copy
4
2.50 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
383641
388036
402722
406040
413518
418992
421411
421435
422043
422824
423317
425260
425737
426663
426840
428319
430556
432831
432962
435968
437285
441195
446381
449643
450921
451238
451840
454938
456966
464526
468809
476510
479469
485878
486228
496636
501494
514404
515613
517329
517358
520427
522035
524908
527904
529188
529206
529456
532953
534968
541215
548304
550829
556116
556492
560358
579106
584815
587056
590633
595290
603144
650056
677172
773924
775893
779567
]
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 (383641 , 388036 , 402722 , 406040 , 413518 , 418992 , 421411 , 421435 , 422043 , 422824 , 423317 , 425260 , 425737 , 426663 , 426840 , 428319 , 430556 , 432831 , 432962 , 435968 , 437285 , 441195 , 446381 , 449643 , 450921 , 451238 , 451840 , 454938 , 456966 , 464526 , 468809 , 476510 , 479469 , 485878 , 486228 , 496636 , 501494 , 514404 , 515613 , 517329 , 517358 , 520427 , 522035 , 524908 , 527904 , 529188 , 529206 , 529456 , 532953 , 534968 , 541215 , 548304 , 550829 , 556116 , 556492 , 560358 , 579106 , 584815 , 587056 , 590633 , 595290 , 603144 , 650056 , 677172 , 773924 , 775893 , 779567 );
Copy
5
81.40 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
383641
388036
402722
406040
413518
418992
421411
421435
422043
422824
423317
425260
425737
426663
426840
428319
430556
432831
432962
435968
437285
441195
446381
449643
450921
451238
451840
454938
456966
464526
468809
476510
479469
485878
486228
496636
501494
514404
515613
517329
517358
520427
522035
524908
527904
529188
529206
529456
532953
534968
541215
548304
550829
556116
556492
560358
579106
584815
587056
590633
595290
603144
650056
677172
773924
775893
779567
]
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 (383641 , 388036 , 402722 , 406040 , 413518 , 418992 , 421411 , 421435 , 422043 , 422824 , 423317 , 425260 , 425737 , 426663 , 426840 , 428319 , 430556 , 432831 , 432962 , 435968 , 437285 , 441195 , 446381 , 449643 , 450921 , 451238 , 451840 , 454938 , 456966 , 464526 , 468809 , 476510 , 479469 , 485878 , 486228 , 496636 , 501494 , 514404 , 515613 , 517329 , 517358 , 520427 , 522035 , 524908 , 527904 , 529188 , 529206 , 529456 , 532953 , 534968 , 541215 , 548304 , 550829 , 556116 , 556492 , 560358 , 579106 , 584815 , 587056 , 590633 , 595290 , 603144 , 650056 , 677172 , 773924 , 775893 , 779567 );
Copy