4
10.78 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
489370
673817
418665
415966
396165
396553
400161
404264
412180
449019
445526
445284
456254
479333
469656
398388
443314
424497
446350
388566
468793
425707
408994
425767
465167
513718
483499
428999
827909
429045
527776
528034
473054
404345
429301
538229
393590
414548
406064
462402
523788
475750
397350
399253
447327
519275
489607
416536
445900
473094
428972
409000
412043
456120
464058
504919
566524
582332
416635
448816
401025
465613
468603
462450
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 (489370 , 673817 , 418665 , 415966 , 396165 , 396553 , 400161 , 404264 , 412180 , 449019 , 445526 , 445284 , 456254 , 479333 , 469656 , 398388 , 443314 , 424497 , 446350 , 388566 , 468793 , 425707 , 408994 , 425767 , 465167 , 513718 , 483499 , 428999 , 827909 , 429045 , 527776 , 528034 , 473054 , 404345 , 429301 , 538229 , 393590 , 414548 , 406064 , 462402 , 523788 , 475750 , 397350 , 399253 , 447327 , 519275 , 489607 , 416536 , 445900 , 473094 , 428972 , 409000 , 412043 , 456120 , 464058 , 504919 , 566524 , 582332 , 416635 , 448816 , 401025 , 465613 , 468603 , 462450 , 624214 );
Copy
5
2.60 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
388566
393590
396165
396553
397350
398388
399253
400161
401025
404264
404345
406064
408994
409000
412043
412180
414548
415966
416536
416635
418665
424497
425707
425767
428972
428999
429045
429301
443314
445284
445526
445900
446350
447327
448816
449019
456120
456254
462402
462450
464058
465167
465613
468603
468793
469656
473054
473094
475750
479333
483499
489370
489607
504919
513718
519275
523788
527776
528034
538229
566524
582332
624214
673817
827909
]
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 (388566 , 393590 , 396165 , 396553 , 397350 , 398388 , 399253 , 400161 , 401025 , 404264 , 404345 , 406064 , 408994 , 409000 , 412043 , 412180 , 414548 , 415966 , 416536 , 416635 , 418665 , 424497 , 425707 , 425767 , 428972 , 428999 , 429045 , 429301 , 443314 , 445284 , 445526 , 445900 , 446350 , 447327 , 448816 , 449019 , 456120 , 456254 , 462402 , 462450 , 464058 , 465167 , 465613 , 468603 , 468793 , 469656 , 473054 , 473094 , 475750 , 479333 , 483499 , 489370 , 489607 , 504919 , 513718 , 519275 , 523788 , 527776 , 528034 , 538229 , 566524 , 582332 , 624214 , 673817 , 827909 );
Copy
6
89.17 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
388566
393590
396165
396553
397350
398388
399253
400161
401025
404264
404345
406064
408994
409000
412043
412180
414548
415966
416536
416635
418665
424497
425707
425767
428972
428999
429045
429301
443314
445284
445526
445900
446350
447327
448816
449019
456120
456254
462402
462450
464058
465167
465613
468603
468793
469656
473054
473094
475750
479333
483499
489370
489607
504919
513718
519275
523788
527776
528034
538229
566524
582332
624214
673817
827909
]
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 (388566 , 393590 , 396165 , 396553 , 397350 , 398388 , 399253 , 400161 , 401025 , 404264 , 404345 , 406064 , 408994 , 409000 , 412043 , 412180 , 414548 , 415966 , 416536 , 416635 , 418665 , 424497 , 425707 , 425767 , 428972 , 428999 , 429045 , 429301 , 443314 , 445284 , 445526 , 445900 , 446350 , 447327 , 448816 , 449019 , 456120 , 456254 , 462402 , 462450 , 464058 , 465167 , 465613 , 468603 , 468793 , 469656 , 473054 , 473094 , 475750 , 479333 , 483499 , 489370 , 489607 , 504919 , 513718 , 519275 , 523788 , 527776 , 528034 , 538229 , 566524 , 582332 , 624214 , 673817 , 827909 );
Copy