3
12.10 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
630614
450252
824312
385697
390192
726879
731279
824311
775657
418989
549354
824468
551111
392065
731794
409076
432641
456729
197443
53532
475685
572740
448196
444224
408528
426390
443405
390538
431463
469511
472399
398409
474549
452985
455025
562029
460694
445363
497473
433477
452956
584366
457888
416511
418845
471412
551219
445542
421219
457674
475630
447318
559822
454316
476288
421131
452384
571847
519272
566577
541998
650291
595471
586623
]
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 (630614 , 450252 , 824312 , 385697 , 390192 , 726879 , 731279 , 824311 , 775657 , 418989 , 549354 , 824468 , 551111 , 392065 , 731794 , 409076 , 432641 , 456729 , 197443 , 53532 , 475685 , 572740 , 448196 , 444224 , 408528 , 426390 , 443405 , 390538 , 431463 , 469511 , 472399 , 398409 , 474549 , 452985 , 455025 , 562029 , 460694 , 445363 , 497473 , 433477 , 452956 , 584366 , 457888 , 416511 , 418845 , 471412 , 551219 , 445542 , 421219 , 457674 , 475630 , 447318 , 559822 , 454316 , 476288 , 421131 , 452384 , 571847 , 519272 , 566577 , 541998 , 650291 , 595471 , 586623 );
Copy
4
2.69 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
53532
197443
385697
390192
390538
392065
398409
408528
409076
416511
418845
418989
421131
421219
426390
431463
432641
433477
443405
444224
445363
445542
447318
448196
450252
452384
452956
452985
454316
455025
456729
457674
457888
460694
469511
471412
472399
474549
475630
475685
476288
497473
519272
541998
549354
551111
551219
559822
562029
566577
571847
572740
584366
586623
595471
630614
650291
726879
731279
731794
775657
824311
824312
824468
]
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 (53532 , 197443 , 385697 , 390192 , 390538 , 392065 , 398409 , 408528 , 409076 , 416511 , 418845 , 418989 , 421131 , 421219 , 426390 , 431463 , 432641 , 433477 , 443405 , 444224 , 445363 , 445542 , 447318 , 448196 , 450252 , 452384 , 452956 , 452985 , 454316 , 455025 , 456729 , 457674 , 457888 , 460694 , 469511 , 471412 , 472399 , 474549 , 475630 , 475685 , 476288 , 497473 , 519272 , 541998 , 549354 , 551111 , 551219 , 559822 , 562029 , 566577 , 571847 , 572740 , 584366 , 586623 , 595471 , 630614 , 650291 , 726879 , 731279 , 731794 , 775657 , 824311 , 824312 , 824468 );
Copy
5
150.14 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
53532
197443
385697
390192
390538
392065
398409
408528
409076
416511
418845
418989
421131
421219
426390
431463
432641
433477
443405
444224
445363
445542
447318
448196
450252
452384
452956
452985
454316
455025
456729
457674
457888
460694
469511
471412
472399
474549
475630
475685
476288
497473
519272
541998
549354
551111
551219
559822
562029
566577
571847
572740
584366
586623
595471
630614
650291
726879
731279
731794
775657
824311
824312
824468
]
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 (53532 , 197443 , 385697 , 390192 , 390538 , 392065 , 398409 , 408528 , 409076 , 416511 , 418845 , 418989 , 421131 , 421219 , 426390 , 431463 , 432641 , 433477 , 443405 , 444224 , 445363 , 445542 , 447318 , 448196 , 450252 , 452384 , 452956 , 452985 , 454316 , 455025 , 456729 , 457674 , 457888 , 460694 , 469511 , 471412 , 472399 , 474549 , 475630 , 475685 , 476288 , 497473 , 519272 , 541998 , 549354 , 551111 , 551219 , 559822 , 562029 , 566577 , 571847 , 572740 , 584366 , 586623 , 595471 , 630614 , 650291 , 726879 , 731279 , 731794 , 775657 , 824311 , 824312 , 824468 );
Copy