3
19.06 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
518964
563458
782554
781854
807215
774817
787343
639338
540984
383554
385489
817490
646915
530777
565319
742925
607275
619699
799514
612348
776044
412857
820840
744976
389728
414233
730111
540384
709555
472644
478119
388429
401108
502289
566199
651541
766536
448705
478222
466604
510465
499469
460109
476441
465770
561287
717867
597074
771180
722781
510526
491680
561819
562164
566759
722851
447909
447814
513091
547823
499050
526004
559386
586379
579362
565474
524931
498036
561837
]
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 (518964 , 563458 , 782554 , 781854 , 807215 , 774817 , 787343 , 639338 , 540984 , 383554 , 385489 , 817490 , 646915 , 530777 , 565319 , 742925 , 607275 , 619699 , 799514 , 612348 , 776044 , 412857 , 820840 , 744976 , 389728 , 414233 , 730111 , 540384 , 709555 , 472644 , 478119 , 388429 , 401108 , 502289 , 566199 , 651541 , 766536 , 448705 , 478222 , 466604 , 510465 , 499469 , 460109 , 476441 , 465770 , 561287 , 717867 , 597074 , 771180 , 722781 , 510526 , 491680 , 561819 , 562164 , 566759 , 722851 , 447909 , 447814 , 513091 , 547823 , 499050 , 526004 , 559386 , 586379 , 579362 , 565474 , 524931 , 498036 , 561837 );
Copy
4
2.53 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
383554
385489
388429
389728
401108
412857
414233
447814
447909
448705
460109
465770
466604
472644
476441
478119
478222
491680
498036
499050
499469
502289
510465
510526
513091
518964
524931
526004
530777
540384
540984
547823
559386
561287
561819
561837
562164
563458
565319
565474
566199
566759
579362
586379
597074
607275
612348
619699
639338
646915
651541
709555
717867
722781
722851
730111
742925
744976
766536
771180
774817
776044
781854
782554
787343
799514
807215
817490
820840
]
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 (383554 , 385489 , 388429 , 389728 , 401108 , 412857 , 414233 , 447814 , 447909 , 448705 , 460109 , 465770 , 466604 , 472644 , 476441 , 478119 , 478222 , 491680 , 498036 , 499050 , 499469 , 502289 , 510465 , 510526 , 513091 , 518964 , 524931 , 526004 , 530777 , 540384 , 540984 , 547823 , 559386 , 561287 , 561819 , 561837 , 562164 , 563458 , 565319 , 565474 , 566199 , 566759 , 579362 , 586379 , 597074 , 607275 , 612348 , 619699 , 639338 , 646915 , 651541 , 709555 , 717867 , 722781 , 722851 , 730111 , 742925 , 744976 , 766536 , 771180 , 774817 , 776044 , 781854 , 782554 , 787343 , 799514 , 807215 , 817490 , 820840 );
Copy
5
81.98 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
383554
385489
388429
389728
401108
412857
414233
447814
447909
448705
460109
465770
466604
472644
476441
478119
478222
491680
498036
499050
499469
502289
510465
510526
513091
518964
524931
526004
530777
540384
540984
547823
559386
561287
561819
561837
562164
563458
565319
565474
566199
566759
579362
586379
597074
607275
612348
619699
639338
646915
651541
709555
717867
722781
722851
730111
742925
744976
766536
771180
774817
776044
781854
782554
787343
799514
807215
817490
820840
]
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 (383554 , 385489 , 388429 , 389728 , 401108 , 412857 , 414233 , 447814 , 447909 , 448705 , 460109 , 465770 , 466604 , 472644 , 476441 , 478119 , 478222 , 491680 , 498036 , 499050 , 499469 , 502289 , 510465 , 510526 , 513091 , 518964 , 524931 , 526004 , 530777 , 540384 , 540984 , 547823 , 559386 , 561287 , 561819 , 561837 , 562164 , 563458 , 565319 , 565474 , 566199 , 566759 , 579362 , 586379 , 597074 , 607275 , 612348 , 619699 , 639338 , 646915 , 651541 , 709555 , 717867 , 722781 , 722851 , 730111 , 742925 , 744976 , 766536 , 771180 , 774817 , 776044 , 781854 , 782554 , 787343 , 799514 , 807215 , 817490 , 820840 );
Copy