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