3
11.37 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
539592
387198
386936
814783
638564
814870
480378
531525
814842
814845
556027
821669
815871
820517
458010
821661
821618
820913
822282
815480
821431
821509
821543
822735
822729
405367
473892
815534
820353
822232
790854
407657
460705
416387
443412
787500
412521
815543
404913
787547
787499
404477
405544
515846
815417
404304
820973
790863
808621
405538
405537
815490
415566
821053
466930
460590
468833
454658
460603
445836
407148
452251
102235
480380
395571
456609
460612
525866
]
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 (539592 , 387198 , 386936 , 814783 , 638564 , 814870 , 480378 , 531525 , 814842 , 814845 , 556027 , 821669 , 815871 , 820517 , 458010 , 821661 , 821618 , 820913 , 822282 , 815480 , 821431 , 821509 , 821543 , 822735 , 822729 , 405367 , 473892 , 815534 , 820353 , 822232 , 790854 , 407657 , 460705 , 416387 , 443412 , 787500 , 412521 , 815543 , 404913 , 787547 , 787499 , 404477 , 405544 , 515846 , 815417 , 404304 , 820973 , 790863 , 808621 , 405538 , 405537 , 815490 , 415566 , 821053 , 466930 , 460590 , 468833 , 454658 , 460603 , 445836 , 407148 , 452251 , 102235 , 480380 , 395571 , 456609 , 460612 , 525866 );
Copy
4
3.32 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
102235
386936
387198
395571
404304
404477
404913
405367
405537
405538
405544
407148
407657
412521
415566
416387
443412
445836
452251
454658
456609
458010
460590
460603
460612
460705
466930
468833
473892
480378
480380
515846
525866
531525
539592
556027
638564
787499
787500
787547
790854
790863
808621
814783
814842
814845
814870
815417
815480
815490
815534
815543
815871
820353
820517
820913
820973
821053
821431
821509
821543
821618
821661
821669
822232
822282
822729
822735
]
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 (102235 , 386936 , 387198 , 395571 , 404304 , 404477 , 404913 , 405367 , 405537 , 405538 , 405544 , 407148 , 407657 , 412521 , 415566 , 416387 , 443412 , 445836 , 452251 , 454658 , 456609 , 458010 , 460590 , 460603 , 460612 , 460705 , 466930 , 468833 , 473892 , 480378 , 480380 , 515846 , 525866 , 531525 , 539592 , 556027 , 638564 , 787499 , 787500 , 787547 , 790854 , 790863 , 808621 , 814783 , 814842 , 814845 , 814870 , 815417 , 815480 , 815490 , 815534 , 815543 , 815871 , 820353 , 820517 , 820913 , 820973 , 821053 , 821431 , 821509 , 821543 , 821618 , 821661 , 821669 , 822232 , 822282 , 822729 , 822735 );
Copy
5
106.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
102235
386936
387198
395571
404304
404477
404913
405367
405537
405538
405544
407148
407657
412521
415566
416387
443412
445836
452251
454658
456609
458010
460590
460603
460612
460705
466930
468833
473892
480378
480380
515846
525866
531525
539592
556027
638564
787499
787500
787547
790854
790863
808621
814783
814842
814845
814870
815417
815480
815490
815534
815543
815871
820353
820517
820913
820973
821053
821431
821509
821543
821618
821661
821669
822232
822282
822729
822735
]
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 (102235 , 386936 , 387198 , 395571 , 404304 , 404477 , 404913 , 405367 , 405537 , 405538 , 405544 , 407148 , 407657 , 412521 , 415566 , 416387 , 443412 , 445836 , 452251 , 454658 , 456609 , 458010 , 460590 , 460603 , 460612 , 460705 , 466930 , 468833 , 473892 , 480378 , 480380 , 515846 , 525866 , 531525 , 539592 , 556027 , 638564 , 787499 , 787500 , 787547 , 790854 , 790863 , 808621 , 814783 , 814842 , 814845 , 814870 , 815417 , 815480 , 815490 , 815534 , 815543 , 815871 , 820353 , 820517 , 820913 , 820973 , 821053 , 821431 , 821509 , 821543 , 821618 , 821661 , 821669 , 822232 , 822282 , 822729 , 822735 );
Copy