4
15.74 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
661926
563420
620098
621764
528712
495393
554787
621277
617212
519023
519933
508869
506697
464616
506292
457558
520622
457944
496006
598775
457471
507830
522151
466433
457615
562426
568164
603876
458233
525790
495876
517795
385697
421776
448070
471424
512687
468370
567726
404280
448622
461136
522844
501549
527914
503104
514596
420502
449169
453584
554383
409215
470523
451430
476810
603277
596309
601748
493221
510951
535488
505398
563932
586553
444996
537596
464564
619651
444391
519686
524323
587248
524848
]
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 (661926 , 563420 , 620098 , 621764 , 528712 , 495393 , 554787 , 621277 , 617212 , 519023 , 519933 , 508869 , 506697 , 464616 , 506292 , 457558 , 520622 , 457944 , 496006 , 598775 , 457471 , 507830 , 522151 , 466433 , 457615 , 562426 , 568164 , 603876 , 458233 , 525790 , 495876 , 517795 , 385697 , 421776 , 448070 , 471424 , 512687 , 468370 , 567726 , 404280 , 448622 , 461136 , 522844 , 501549 , 527914 , 503104 , 514596 , 420502 , 449169 , 453584 , 554383 , 409215 , 470523 , 451430 , 476810 , 603277 , 596309 , 601748 , 493221 , 510951 , 535488 , 505398 , 563932 , 586553 , 444996 , 537596 , 464564 , 619651 , 444391 , 519686 , 524323 , 587248 , 524848 );
Copy
5
2.99 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
385697
404280
409215
420502
421776
444391
444996
448070
448622
449169
451430
453584
457471
457558
457615
457944
458233
461136
464564
464616
466433
468370
470523
471424
476810
493221
495393
495876
496006
501549
503104
505398
506292
506697
507830
508869
510951
512687
514596
517795
519023
519686
519933
520622
522151
522844
524323
524848
525790
527914
528712
535488
537596
554383
554787
562426
563420
563932
567726
568164
586553
587248
596309
598775
601748
603277
603876
617212
619651
620098
621277
621764
661926
]
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 (385697 , 404280 , 409215 , 420502 , 421776 , 444391 , 444996 , 448070 , 448622 , 449169 , 451430 , 453584 , 457471 , 457558 , 457615 , 457944 , 458233 , 461136 , 464564 , 464616 , 466433 , 468370 , 470523 , 471424 , 476810 , 493221 , 495393 , 495876 , 496006 , 501549 , 503104 , 505398 , 506292 , 506697 , 507830 , 508869 , 510951 , 512687 , 514596 , 517795 , 519023 , 519686 , 519933 , 520622 , 522151 , 522844 , 524323 , 524848 , 525790 , 527914 , 528712 , 535488 , 537596 , 554383 , 554787 , 562426 , 563420 , 563932 , 567726 , 568164 , 586553 , 587248 , 596309 , 598775 , 601748 , 603277 , 603876 , 617212 , 619651 , 620098 , 621277 , 621764 , 661926 );
Copy
6
110.54 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
385697
404280
409215
420502
421776
444391
444996
448070
448622
449169
451430
453584
457471
457558
457615
457944
458233
461136
464564
464616
466433
468370
470523
471424
476810
493221
495393
495876
496006
501549
503104
505398
506292
506697
507830
508869
510951
512687
514596
517795
519023
519686
519933
520622
522151
522844
524323
524848
525790
527914
528712
535488
537596
554383
554787
562426
563420
563932
567726
568164
586553
587248
596309
598775
601748
603277
603876
617212
619651
620098
621277
621764
661926
]
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 (385697 , 404280 , 409215 , 420502 , 421776 , 444391 , 444996 , 448070 , 448622 , 449169 , 451430 , 453584 , 457471 , 457558 , 457615 , 457944 , 458233 , 461136 , 464564 , 464616 , 466433 , 468370 , 470523 , 471424 , 476810 , 493221 , 495393 , 495876 , 496006 , 501549 , 503104 , 505398 , 506292 , 506697 , 507830 , 508869 , 510951 , 512687 , 514596 , 517795 , 519023 , 519686 , 519933 , 520622 , 522151 , 522844 , 524323 , 524848 , 525790 , 527914 , 528712 , 535488 , 537596 , 554383 , 554787 , 562426 , 563420 , 563932 , 567726 , 568164 , 586553 , 587248 , 596309 , 598775 , 601748 , 603277 , 603876 , 617212 , 619651 , 620098 , 621277 , 621764 , 661926 );
Copy