7
11.83 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
576564
536127
545369
546409
529597
538990
496345
529638
451092
529794
534564
530026
628485
529574
471081
553215
540509
564227
444306
576503
523198
587987
547454
561040
547473
512928
559372
547494
547477
540032
534557
514868
487413
465454
656925
534556
528438
466476
547472
561038
561019
547475
576517
569927
561021
576545
576533
573197
573183
559355
556044
547489
547484
547483
547481
547478
547474
547471
547468
547467
547466
547464
547462
547452
547236
545422
536121
530698
530630
530376
506115
504607
487422
]
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 (576564 , 536127 , 545369 , 546409 , 529597 , 538990 , 496345 , 529638 , 451092 , 529794 , 534564 , 530026 , 628485 , 529574 , 471081 , 553215 , 540509 , 564227 , 444306 , 576503 , 523198 , 587987 , 547454 , 561040 , 547473 , 512928 , 559372 , 547494 , 547477 , 540032 , 534557 , 514868 , 487413 , 465454 , 656925 , 534556 , 528438 , 466476 , 547472 , 561038 , 561019 , 547475 , 576517 , 569927 , 561021 , 576545 , 576533 , 573197 , 573183 , 559355 , 556044 , 547489 , 547484 , 547483 , 547481 , 547478 , 547474 , 547471 , 547468 , 547467 , 547466 , 547464 , 547462 , 547452 , 547236 , 545422 , 536121 , 530698 , 530630 , 530376 , 506115 , 504607 , 487422 );
Copy
8
2.79 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
444306
451092
465454
466476
471081
487413
487422
496345
504607
506115
512928
514868
523198
528438
529574
529597
529638
529794
530026
530376
530630
530698
534556
534557
534564
536121
536127
538990
540032
540509
545369
545422
546409
547236
547452
547454
547462
547464
547466
547467
547468
547471
547472
547473
547474
547475
547477
547478
547481
547483
547484
547489
547494
553215
556044
559355
559372
561019
561021
561038
561040
564227
569927
573183
573197
576503
576517
576533
576545
576564
587987
628485
656925
]
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 (444306 , 451092 , 465454 , 466476 , 471081 , 487413 , 487422 , 496345 , 504607 , 506115 , 512928 , 514868 , 523198 , 528438 , 529574 , 529597 , 529638 , 529794 , 530026 , 530376 , 530630 , 530698 , 534556 , 534557 , 534564 , 536121 , 536127 , 538990 , 540032 , 540509 , 545369 , 545422 , 546409 , 547236 , 547452 , 547454 , 547462 , 547464 , 547466 , 547467 , 547468 , 547471 , 547472 , 547473 , 547474 , 547475 , 547477 , 547478 , 547481 , 547483 , 547484 , 547489 , 547494 , 553215 , 556044 , 559355 , 559372 , 561019 , 561021 , 561038 , 561040 , 564227 , 569927 , 573183 , 573197 , 576503 , 576517 , 576533 , 576545 , 576564 , 587987 , 628485 , 656925 );
Copy
9
92.49 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
444306
451092
465454
466476
471081
487413
487422
496345
504607
506115
512928
514868
523198
528438
529574
529597
529638
529794
530026
530376
530630
530698
534556
534557
534564
536121
536127
538990
540032
540509
545369
545422
546409
547236
547452
547454
547462
547464
547466
547467
547468
547471
547472
547473
547474
547475
547477
547478
547481
547483
547484
547489
547494
553215
556044
559355
559372
561019
561021
561038
561040
564227
569927
573183
573197
576503
576517
576533
576545
576564
587987
628485
656925
]
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 (444306 , 451092 , 465454 , 466476 , 471081 , 487413 , 487422 , 496345 , 504607 , 506115 , 512928 , 514868 , 523198 , 528438 , 529574 , 529597 , 529638 , 529794 , 530026 , 530376 , 530630 , 530698 , 534556 , 534557 , 534564 , 536121 , 536127 , 538990 , 540032 , 540509 , 545369 , 545422 , 546409 , 547236 , 547452 , 547454 , 547462 , 547464 , 547466 , 547467 , 547468 , 547471 , 547472 , 547473 , 547474 , 547475 , 547477 , 547478 , 547481 , 547483 , 547484 , 547489 , 547494 , 553215 , 556044 , 559355 , 559372 , 561019 , 561021 , 561038 , 561040 , 564227 , 569927 , 573183 , 573197 , 576503 , 576517 , 576533 , 576545 , 576564 , 587987 , 628485 , 656925 );
Copy