3
10.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
73204
466388
391580
459633
465723
190919
202970
513530
382252
477135
762302
495044
472907
445273
268873
419537
485281
411462
522284
559166
280580
729299
484147
485638
444426
556340
521999
547453
426512
455500
556341
493624
574767
480493
516246
413808
439809
466024
393687
469167
547790
523869
519365
384128
401423
440815
514243
567053
528937
513490
437996
389982
466912
506360
470638
500914
426294
485452
555043
485061
522825
578703
482308
624776
461954
457103
486875
506976
482737
598654
499863
521843
]
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 (73204 , 466388 , 391580 , 459633 , 465723 , 190919 , 202970 , 513530 , 382252 , 477135 , 762302 , 495044 , 472907 , 445273 , 268873 , 419537 , 485281 , 411462 , 522284 , 559166 , 280580 , 729299 , 484147 , 485638 , 444426 , 556340 , 521999 , 547453 , 426512 , 455500 , 556341 , 493624 , 574767 , 480493 , 516246 , 413808 , 439809 , 466024 , 393687 , 469167 , 547790 , 523869 , 519365 , 384128 , 401423 , 440815 , 514243 , 567053 , 528937 , 513490 , 437996 , 389982 , 466912 , 506360 , 470638 , 500914 , 426294 , 485452 , 555043 , 485061 , 522825 , 578703 , 482308 , 624776 , 461954 , 457103 , 486875 , 506976 , 482737 , 598654 , 499863 , 521843 );
Copy
4
3.38 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
73204
190919
202970
268873
280580
382252
384128
389982
391580
393687
401423
411462
413808
419537
426294
426512
437996
439809
440815
444426
445273
455500
457103
459633
461954
465723
466024
466388
466912
469167
470638
472907
477135
480493
482308
482737
484147
485061
485281
485452
485638
486875
493624
495044
499863
500914
506360
506976
513490
513530
514243
516246
519365
521843
521999
522284
522825
523869
528937
547453
547790
555043
556340
556341
559166
567053
574767
578703
598654
624776
729299
762302
]
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 (73204 , 190919 , 202970 , 268873 , 280580 , 382252 , 384128 , 389982 , 391580 , 393687 , 401423 , 411462 , 413808 , 419537 , 426294 , 426512 , 437996 , 439809 , 440815 , 444426 , 445273 , 455500 , 457103 , 459633 , 461954 , 465723 , 466024 , 466388 , 466912 , 469167 , 470638 , 472907 , 477135 , 480493 , 482308 , 482737 , 484147 , 485061 , 485281 , 485452 , 485638 , 486875 , 493624 , 495044 , 499863 , 500914 , 506360 , 506976 , 513490 , 513530 , 514243 , 516246 , 519365 , 521843 , 521999 , 522284 , 522825 , 523869 , 528937 , 547453 , 547790 , 555043 , 556340 , 556341 , 559166 , 567053 , 574767 , 578703 , 598654 , 624776 , 729299 , 762302 );
Copy
5
106.82 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
73204
190919
202970
268873
280580
382252
384128
389982
391580
393687
401423
411462
413808
419537
426294
426512
437996
439809
440815
444426
445273
455500
457103
459633
461954
465723
466024
466388
466912
469167
470638
472907
477135
480493
482308
482737
484147
485061
485281
485452
485638
486875
493624
495044
499863
500914
506360
506976
513490
513530
514243
516246
519365
521843
521999
522284
522825
523869
528937
547453
547790
555043
556340
556341
559166
567053
574767
578703
598654
624776
729299
762302
]
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 (73204 , 190919 , 202970 , 268873 , 280580 , 382252 , 384128 , 389982 , 391580 , 393687 , 401423 , 411462 , 413808 , 419537 , 426294 , 426512 , 437996 , 439809 , 440815 , 444426 , 445273 , 455500 , 457103 , 459633 , 461954 , 465723 , 466024 , 466388 , 466912 , 469167 , 470638 , 472907 , 477135 , 480493 , 482308 , 482737 , 484147 , 485061 , 485281 , 485452 , 485638 , 486875 , 493624 , 495044 , 499863 , 500914 , 506360 , 506976 , 513490 , 513530 , 514243 , 516246 , 519365 , 521843 , 521999 , 522284 , 522825 , 523869 , 528937 , 547453 , 547790 , 555043 , 556340 , 556341 , 559166 , 567053 , 574767 , 578703 , 598654 , 624776 , 729299 , 762302 );
Copy