4
16.02 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
415917
600402
410781
407809
503418
528550
686207
809271
518176
510206
506141
422879
467844
409784
516427
526996
489551
498238
387766
415919
536523
536491
556005
478948
501713
422708
455017
531539
593032
592996
731877
330478
519701
648466
599556
433687
567112
577429
615838
391287
476808
426434
464969
410930
532701
464985
455044
517286
464306
520248
443163
621504
638139
561115
443767
431333
516256
602532
585990
510186
553300
579341
493124
593343
]
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 (415917 , 600402 , 410781 , 407809 , 503418 , 528550 , 686207 , 809271 , 518176 , 510206 , 506141 , 422879 , 467844 , 409784 , 516427 , 526996 , 489551 , 498238 , 387766 , 415919 , 536523 , 536491 , 556005 , 478948 , 501713 , 422708 , 455017 , 531539 , 593032 , 592996 , 731877 , 330478 , 519701 , 648466 , 599556 , 433687 , 567112 , 577429 , 615838 , 391287 , 476808 , 426434 , 464969 , 410930 , 532701 , 464985 , 455044 , 517286 , 464306 , 520248 , 443163 , 621504 , 638139 , 561115 , 443767 , 431333 , 516256 , 602532 , 585990 , 510186 , 553300 , 579341 , 493124 , 593343 );
Copy
5
2.36 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
330478
387766
391287
407809
409784
410781
410930
415917
415919
422708
422879
426434
431333
433687
443163
443767
455017
455044
464306
464969
464985
467844
476808
478948
489551
493124
498238
501713
503418
506141
510186
510206
516256
516427
517286
518176
519701
520248
526996
528550
531539
532701
536491
536523
553300
556005
561115
567112
577429
579341
585990
592996
593032
593343
599556
600402
602532
615838
621504
638139
648466
686207
731877
809271
]
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 (330478 , 387766 , 391287 , 407809 , 409784 , 410781 , 410930 , 415917 , 415919 , 422708 , 422879 , 426434 , 431333 , 433687 , 443163 , 443767 , 455017 , 455044 , 464306 , 464969 , 464985 , 467844 , 476808 , 478948 , 489551 , 493124 , 498238 , 501713 , 503418 , 506141 , 510186 , 510206 , 516256 , 516427 , 517286 , 518176 , 519701 , 520248 , 526996 , 528550 , 531539 , 532701 , 536491 , 536523 , 553300 , 556005 , 561115 , 567112 , 577429 , 579341 , 585990 , 592996 , 593032 , 593343 , 599556 , 600402 , 602532 , 615838 , 621504 , 638139 , 648466 , 686207 , 731877 , 809271 );
Copy
6
82.18 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
330478
387766
391287
407809
409784
410781
410930
415917
415919
422708
422879
426434
431333
433687
443163
443767
455017
455044
464306
464969
464985
467844
476808
478948
489551
493124
498238
501713
503418
506141
510186
510206
516256
516427
517286
518176
519701
520248
526996
528550
531539
532701
536491
536523
553300
556005
561115
567112
577429
579341
585990
592996
593032
593343
599556
600402
602532
615838
621504
638139
648466
686207
731877
809271
]
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 (330478 , 387766 , 391287 , 407809 , 409784 , 410781 , 410930 , 415917 , 415919 , 422708 , 422879 , 426434 , 431333 , 433687 , 443163 , 443767 , 455017 , 455044 , 464306 , 464969 , 464985 , 467844 , 476808 , 478948 , 489551 , 493124 , 498238 , 501713 , 503418 , 506141 , 510186 , 510206 , 516256 , 516427 , 517286 , 518176 , 519701 , 520248 , 526996 , 528550 , 531539 , 532701 , 536491 , 536523 , 553300 , 556005 , 561115 , 567112 , 577429 , 579341 , 585990 , 592996 , 593032 , 593343 , 599556 , 600402 , 602532 , 615838 , 621504 , 638139 , 648466 , 686207 , 731877 , 809271 );
Copy