3
9.45 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
388296
532659
691860
447161
454113
806420
401602
462539
622044
605374
701348
806447
580717
580705
823476
209394
209723
821029
472463
593643
389980
407220
776013
214560
387851
385442
823313
606557
484835
692432
775872
822287
386197
484829
715395
676342
605525
776320
748138
776022
810769
454122
457772
512805
533003
523602
532916
390538
429359
523292
488729
523316
516822
595786
622235
634475
509495
491373
526224
566694
610304
619468
591324
511021
494430
561351
645238
569417
612431
471364
515538
582789
582540
401919
674994
]
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 (388296 , 532659 , 691860 , 447161 , 454113 , 806420 , 401602 , 462539 , 622044 , 605374 , 701348 , 806447 , 580717 , 580705 , 823476 , 209394 , 209723 , 821029 , 472463 , 593643 , 389980 , 407220 , 776013 , 214560 , 387851 , 385442 , 823313 , 606557 , 484835 , 692432 , 775872 , 822287 , 386197 , 484829 , 715395 , 676342 , 605525 , 776320 , 748138 , 776022 , 810769 , 454122 , 457772 , 512805 , 533003 , 523602 , 532916 , 390538 , 429359 , 523292 , 488729 , 523316 , 516822 , 595786 , 622235 , 634475 , 509495 , 491373 , 526224 , 566694 , 610304 , 619468 , 591324 , 511021 , 494430 , 561351 , 645238 , 569417 , 612431 , 471364 , 515538 , 582789 , 582540 , 401919 , 674994 );
Copy
4
3.20 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
209394
209723
214560
385442
386197
387851
388296
389980
390538
401602
401919
407220
429359
447161
454113
454122
457772
462539
471364
472463
484829
484835
488729
491373
494430
509495
511021
512805
515538
516822
523292
523316
523602
526224
532659
532916
533003
561351
566694
569417
580705
580717
582540
582789
591324
593643
595786
605374
605525
606557
610304
612431
619468
622044
622235
634475
645238
674994
676342
691860
692432
701348
715395
748138
775872
776013
776022
776320
806420
806447
810769
821029
822287
823313
823476
]
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 (209394 , 209723 , 214560 , 385442 , 386197 , 387851 , 388296 , 389980 , 390538 , 401602 , 401919 , 407220 , 429359 , 447161 , 454113 , 454122 , 457772 , 462539 , 471364 , 472463 , 484829 , 484835 , 488729 , 491373 , 494430 , 509495 , 511021 , 512805 , 515538 , 516822 , 523292 , 523316 , 523602 , 526224 , 532659 , 532916 , 533003 , 561351 , 566694 , 569417 , 580705 , 580717 , 582540 , 582789 , 591324 , 593643 , 595786 , 605374 , 605525 , 606557 , 610304 , 612431 , 619468 , 622044 , 622235 , 634475 , 645238 , 674994 , 676342 , 691860 , 692432 , 701348 , 715395 , 748138 , 775872 , 776013 , 776022 , 776320 , 806420 , 806447 , 810769 , 821029 , 822287 , 823313 , 823476 );
Copy
5
136.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
209394
209723
214560
385442
386197
387851
388296
389980
390538
401602
401919
407220
429359
447161
454113
454122
457772
462539
471364
472463
484829
484835
488729
491373
494430
509495
511021
512805
515538
516822
523292
523316
523602
526224
532659
532916
533003
561351
566694
569417
580705
580717
582540
582789
591324
593643
595786
605374
605525
606557
610304
612431
619468
622044
622235
634475
645238
674994
676342
691860
692432
701348
715395
748138
775872
776013
776022
776320
806420
806447
810769
821029
822287
823313
823476
]
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 (209394 , 209723 , 214560 , 385442 , 386197 , 387851 , 388296 , 389980 , 390538 , 401602 , 401919 , 407220 , 429359 , 447161 , 454113 , 454122 , 457772 , 462539 , 471364 , 472463 , 484829 , 484835 , 488729 , 491373 , 494430 , 509495 , 511021 , 512805 , 515538 , 516822 , 523292 , 523316 , 523602 , 526224 , 532659 , 532916 , 533003 , 561351 , 566694 , 569417 , 580705 , 580717 , 582540 , 582789 , 591324 , 593643 , 595786 , 605374 , 605525 , 606557 , 610304 , 612431 , 619468 , 622044 , 622235 , 634475 , 645238 , 674994 , 676342 , 691860 , 692432 , 701348 , 715395 , 748138 , 775872 , 776013 , 776022 , 776320 , 806420 , 806447 , 810769 , 821029 , 822287 , 823313 , 823476 );
Copy