3
14.84 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
570429
554525
593408
617680
593343
524544
815769
815485
815733
565337
593518
709900
520925
816520
480376
681088
688645
559037
560424
593338
593543
629278
190925
516445
474141
515275
570152
581136
691201
704557
560143
591641
592461
620169
469426
469497
508782
639722
401615
576648
557800
560153
563623
593341
593260
437544
408383
531195
519622
469507
641130
410003
414375
586484
468760
531236
563489
480372
524560
570428
691196
604172
475241
593292
430437
632585
498039
578326
593425
]
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 (570429 , 554525 , 593408 , 617680 , 593343 , 524544 , 815769 , 815485 , 815733 , 565337 , 593518 , 709900 , 520925 , 816520 , 480376 , 681088 , 688645 , 559037 , 560424 , 593338 , 593543 , 629278 , 190925 , 516445 , 474141 , 515275 , 570152 , 581136 , 691201 , 704557 , 560143 , 591641 , 592461 , 620169 , 469426 , 469497 , 508782 , 639722 , 401615 , 576648 , 557800 , 560153 , 563623 , 593341 , 593260 , 437544 , 408383 , 531195 , 519622 , 469507 , 641130 , 410003 , 414375 , 586484 , 468760 , 531236 , 563489 , 480372 , 524560 , 570428 , 691196 , 604172 , 475241 , 593292 , 430437 , 632585 , 498039 , 578326 , 593425 );
Copy
4
2.98 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
190925
401615
408383
410003
414375
430437
437544
468760
469426
469497
469507
474141
475241
480372
480376
498039
508782
515275
516445
519622
520925
524544
524560
531195
531236
554525
557800
559037
560143
560153
560424
563489
563623
565337
570152
570428
570429
576648
578326
581136
586484
591641
592461
593260
593292
593338
593341
593343
593408
593425
593518
593543
604172
617680
620169
629278
632585
639722
641130
681088
688645
691196
691201
704557
709900
815485
815733
815769
816520
]
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 (190925 , 401615 , 408383 , 410003 , 414375 , 430437 , 437544 , 468760 , 469426 , 469497 , 469507 , 474141 , 475241 , 480372 , 480376 , 498039 , 508782 , 515275 , 516445 , 519622 , 520925 , 524544 , 524560 , 531195 , 531236 , 554525 , 557800 , 559037 , 560143 , 560153 , 560424 , 563489 , 563623 , 565337 , 570152 , 570428 , 570429 , 576648 , 578326 , 581136 , 586484 , 591641 , 592461 , 593260 , 593292 , 593338 , 593341 , 593343 , 593408 , 593425 , 593518 , 593543 , 604172 , 617680 , 620169 , 629278 , 632585 , 639722 , 641130 , 681088 , 688645 , 691196 , 691201 , 704557 , 709900 , 815485 , 815733 , 815769 , 816520 );
Copy
5
84.11 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
190925
401615
408383
410003
414375
430437
437544
468760
469426
469497
469507
474141
475241
480372
480376
498039
508782
515275
516445
519622
520925
524544
524560
531195
531236
554525
557800
559037
560143
560153
560424
563489
563623
565337
570152
570428
570429
576648
578326
581136
586484
591641
592461
593260
593292
593338
593341
593343
593408
593425
593518
593543
604172
617680
620169
629278
632585
639722
641130
681088
688645
691196
691201
704557
709900
815485
815733
815769
816520
]
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 (190925 , 401615 , 408383 , 410003 , 414375 , 430437 , 437544 , 468760 , 469426 , 469497 , 469507 , 474141 , 475241 , 480372 , 480376 , 498039 , 508782 , 515275 , 516445 , 519622 , 520925 , 524544 , 524560 , 531195 , 531236 , 554525 , 557800 , 559037 , 560143 , 560153 , 560424 , 563489 , 563623 , 565337 , 570152 , 570428 , 570429 , 576648 , 578326 , 581136 , 586484 , 591641 , 592461 , 593260 , 593292 , 593338 , 593341 , 593343 , 593408 , 593425 , 593518 , 593543 , 604172 , 617680 , 620169 , 629278 , 632585 , 639722 , 641130 , 681088 , 688645 , 691196 , 691201 , 704557 , 709900 , 815485 , 815733 , 815769 , 816520 );
Copy