3
12.91 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
421127
475508
590953
584153
597518
456254
489366
467760
573873
445526
447340
413827
489346
463972
416893
439800
513718
468781
447337
502191
553920
600485
714497
418713
806324
662048
530633
414587
527218
465307
483498
451358
448816
549860
451175
409759
571834
468771
470288
420852
421490
573583
463919
543892
446008
510615
561307
463133
489093
484816
526003
456952
427126
426041
494365
585398
447751
543905
465167
557530
611266
622188
407111
489077
446529
413274
414865
624214
]
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 (421127 , 475508 , 590953 , 584153 , 597518 , 456254 , 489366 , 467760 , 573873 , 445526 , 447340 , 413827 , 489346 , 463972 , 416893 , 439800 , 513718 , 468781 , 447337 , 502191 , 553920 , 600485 , 714497 , 418713 , 806324 , 662048 , 530633 , 414587 , 527218 , 465307 , 483498 , 451358 , 448816 , 549860 , 451175 , 409759 , 571834 , 468771 , 470288 , 420852 , 421490 , 573583 , 463919 , 543892 , 446008 , 510615 , 561307 , 463133 , 489093 , 484816 , 526003 , 456952 , 427126 , 426041 , 494365 , 585398 , 447751 , 543905 , 465167 , 557530 , 611266 , 622188 , 407111 , 489077 , 446529 , 413274 , 414865 , 624214 );
Copy
4
2.00 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
407111
409759
413274
413827
414587
414865
416893
418713
420852
421127
421490
426041
427126
439800
445526
446008
446529
447337
447340
447751
448816
451175
451358
456254
456952
463133
463919
463972
465167
465307
467760
468771
468781
470288
475508
483498
484816
489077
489093
489346
489366
494365
502191
510615
513718
526003
527218
530633
543892
543905
549860
553920
557530
561307
571834
573583
573873
584153
585398
590953
597518
600485
611266
622188
624214
662048
714497
806324
]
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 (407111 , 409759 , 413274 , 413827 , 414587 , 414865 , 416893 , 418713 , 420852 , 421127 , 421490 , 426041 , 427126 , 439800 , 445526 , 446008 , 446529 , 447337 , 447340 , 447751 , 448816 , 451175 , 451358 , 456254 , 456952 , 463133 , 463919 , 463972 , 465167 , 465307 , 467760 , 468771 , 468781 , 470288 , 475508 , 483498 , 484816 , 489077 , 489093 , 489346 , 489366 , 494365 , 502191 , 510615 , 513718 , 526003 , 527218 , 530633 , 543892 , 543905 , 549860 , 553920 , 557530 , 561307 , 571834 , 573583 , 573873 , 584153 , 585398 , 590953 , 597518 , 600485 , 611266 , 622188 , 624214 , 662048 , 714497 , 806324 );
Copy
5
87.39 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
407111
409759
413274
413827
414587
414865
416893
418713
420852
421127
421490
426041
427126
439800
445526
446008
446529
447337
447340
447751
448816
451175
451358
456254
456952
463133
463919
463972
465167
465307
467760
468771
468781
470288
475508
483498
484816
489077
489093
489346
489366
494365
502191
510615
513718
526003
527218
530633
543892
543905
549860
553920
557530
561307
571834
573583
573873
584153
585398
590953
597518
600485
611266
622188
624214
662048
714497
806324
]
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 (407111 , 409759 , 413274 , 413827 , 414587 , 414865 , 416893 , 418713 , 420852 , 421127 , 421490 , 426041 , 427126 , 439800 , 445526 , 446008 , 446529 , 447337 , 447340 , 447751 , 448816 , 451175 , 451358 , 456254 , 456952 , 463133 , 463919 , 463972 , 465167 , 465307 , 467760 , 468771 , 468781 , 470288 , 475508 , 483498 , 484816 , 489077 , 489093 , 489346 , 489366 , 494365 , 502191 , 510615 , 513718 , 526003 , 527218 , 530633 , 543892 , 543905 , 549860 , 553920 , 557530 , 561307 , 571834 , 573583 , 573873 , 584153 , 585398 , 590953 , 597518 , 600485 , 611266 , 622188 , 624214 , 662048 , 714497 , 806324 );
Copy