3
18.40 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
571434
577371
561136
576711
451259
426399
483473
523109
492050
522870
503405
545537
596851
752563
807191
809930
477097
619526
559183
525731
712561
83386
454107
625342
461141
440440
445649
481904
534968
536310
550579
648974
650774
650188
678128
601600
756469
633753
427832
410239
518151
522666
525717
447679
534984
523360
645861
591354
320879
624226
456518
467088
573156
534625
676088
593292
504085
518438
513303
674983
543772
614745
607620
383705
589211
591135
565541
607374
620232
526104
543605
463087
]
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 (571434 , 577371 , 561136 , 576711 , 451259 , 426399 , 483473 , 523109 , 492050 , 522870 , 503405 , 545537 , 596851 , 752563 , 807191 , 809930 , 477097 , 619526 , 559183 , 525731 , 712561 , 83386 , 454107 , 625342 , 461141 , 440440 , 445649 , 481904 , 534968 , 536310 , 550579 , 648974 , 650774 , 650188 , 678128 , 601600 , 756469 , 633753 , 427832 , 410239 , 518151 , 522666 , 525717 , 447679 , 534984 , 523360 , 645861 , 591354 , 320879 , 624226 , 456518 , 467088 , 573156 , 534625 , 676088 , 593292 , 504085 , 518438 , 513303 , 674983 , 543772 , 614745 , 607620 , 383705 , 589211 , 591135 , 565541 , 607374 , 620232 , 526104 , 543605 , 463087 );
Copy
4
2.78 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
83386
320879
383705
410239
426399
427832
440440
445649
447679
451259
454107
456518
461141
463087
467088
477097
481904
483473
492050
503405
504085
513303
518151
518438
522666
522870
523109
523360
525717
525731
526104
534625
534968
534984
536310
543605
543772
545537
550579
559183
561136
565541
571434
573156
576711
577371
589211
591135
591354
593292
596851
601600
607374
607620
614745
619526
620232
624226
625342
633753
645861
648974
650188
650774
674983
676088
678128
712561
752563
756469
807191
809930
]
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 (83386 , 320879 , 383705 , 410239 , 426399 , 427832 , 440440 , 445649 , 447679 , 451259 , 454107 , 456518 , 461141 , 463087 , 467088 , 477097 , 481904 , 483473 , 492050 , 503405 , 504085 , 513303 , 518151 , 518438 , 522666 , 522870 , 523109 , 523360 , 525717 , 525731 , 526104 , 534625 , 534968 , 534984 , 536310 , 543605 , 543772 , 545537 , 550579 , 559183 , 561136 , 565541 , 571434 , 573156 , 576711 , 577371 , 589211 , 591135 , 591354 , 593292 , 596851 , 601600 , 607374 , 607620 , 614745 , 619526 , 620232 , 624226 , 625342 , 633753 , 645861 , 648974 , 650188 , 650774 , 674983 , 676088 , 678128 , 712561 , 752563 , 756469 , 807191 , 809930 );
Copy
5
90.84 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
83386
320879
383705
410239
426399
427832
440440
445649
447679
451259
454107
456518
461141
463087
467088
477097
481904
483473
492050
503405
504085
513303
518151
518438
522666
522870
523109
523360
525717
525731
526104
534625
534968
534984
536310
543605
543772
545537
550579
559183
561136
565541
571434
573156
576711
577371
589211
591135
591354
593292
596851
601600
607374
607620
614745
619526
620232
624226
625342
633753
645861
648974
650188
650774
674983
676088
678128
712561
752563
756469
807191
809930
]
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 (83386 , 320879 , 383705 , 410239 , 426399 , 427832 , 440440 , 445649 , 447679 , 451259 , 454107 , 456518 , 461141 , 463087 , 467088 , 477097 , 481904 , 483473 , 492050 , 503405 , 504085 , 513303 , 518151 , 518438 , 522666 , 522870 , 523109 , 523360 , 525717 , 525731 , 526104 , 534625 , 534968 , 534984 , 536310 , 543605 , 543772 , 545537 , 550579 , 559183 , 561136 , 565541 , 571434 , 573156 , 576711 , 577371 , 589211 , 591135 , 591354 , 593292 , 596851 , 601600 , 607374 , 607620 , 614745 , 619526 , 620232 , 624226 , 625342 , 633753 , 645861 , 648974 , 650188 , 650774 , 674983 , 676088 , 678128 , 712561 , 752563 , 756469 , 807191 , 809930 );
Copy