| 4 |
15.13 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
470628
528441
576113
605521
814062
448402
447183
467562
504171
691713
699399
667352
699398
637247
595731
587553
605007
732765
812891
735871
731378
402598
470614
472128
512411
496599
623149
475630
537517
540071
496611
495279
523572
501203
555969
667344
632924
626283
587852
790888
760859
420307
462289
476844
439748
417899
439583
450238
527032
525547
510572
523678
407136
467516
579843
605595
624110
623334
465933
443792
504158
595862
507310
496603
533289
598204
606349
474621
528081
509664
516791
418399
463470
467613
588877
486583
515194
425655
545086
621348
586554
614720
541593
550667
540792
615444
605492
467981
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
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 (470628, 528441, 576113, 605521, 814062, 448402, 447183, 467562, 504171, 691713, 699399, 667352, 699398, 637247, 595731, 587553, 605007, 732765, 812891, 735871, 731378, 402598, 470614, 472128, 512411, 496599, 623149, 475630, 537517, 540071, 496611, 495279, 523572, 501203, 555969, 667344, 632924, 626283, 587852, 790888, 760859, 420307, 462289, 476844, 439748, 417899, 439583, 450238, 527032, 525547, 510572, 523678, 407136, 467516, 579843, 605595, 624110, 623334, 465933, 443792, 504158, 595862, 507310, 496603, 533289, 598204, 606349, 474621, 528081, 509664, 516791, 418399, 463470, 467613, 588877, 486583, 515194, 425655, 545086, 621348, 586554, 614720, 541593, 550667, 540792, 615444, 605492, 467981);
|
| 5 |
3.32 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
402598
407136
417899
418399
420307
425655
439583
439748
443792
447183
448402
450238
462289
463470
465933
467516
467562
467613
467981
470614
470628
472128
474621
475630
476844
486583
495279
496599
496603
496611
501203
504158
504171
507310
509664
510572
512411
515194
516791
523572
523678
525547
527032
528081
528441
533289
537517
540071
540792
541593
545086
550667
555969
576113
579843
586554
587553
587852
588877
595731
595862
598204
605007
605492
605521
605595
606349
614720
615444
621348
623149
623334
624110
626283
632924
637247
667344
667352
691713
699398
699399
731378
732765
735871
760859
790888
812891
814062
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
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 (402598, 407136, 417899, 418399, 420307, 425655, 439583, 439748, 443792, 447183, 448402, 450238, 462289, 463470, 465933, 467516, 467562, 467613, 467981, 470614, 470628, 472128, 474621, 475630, 476844, 486583, 495279, 496599, 496603, 496611, 501203, 504158, 504171, 507310, 509664, 510572, 512411, 515194, 516791, 523572, 523678, 525547, 527032, 528081, 528441, 533289, 537517, 540071, 540792, 541593, 545086, 550667, 555969, 576113, 579843, 586554, 587553, 587852, 588877, 595731, 595862, 598204, 605007, 605492, 605521, 605595, 606349, 614720, 615444, 621348, 623149, 623334, 624110, 626283, 632924, 637247, 667344, 667352, 691713, 699398, 699399, 731378, 732765, 735871, 760859, 790888, 812891, 814062);
|
| 6 |
120.37 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
402598
407136
417899
418399
420307
425655
439583
439748
443792
447183
448402
450238
462289
463470
465933
467516
467562
467613
467981
470614
470628
472128
474621
475630
476844
486583
495279
496599
496603
496611
501203
504158
504171
507310
509664
510572
512411
515194
516791
523572
523678
525547
527032
528081
528441
533289
537517
540071
540792
541593
545086
550667
555969
576113
579843
586554
587553
587852
588877
595731
595862
598204
605007
605492
605521
605595
606349
614720
615444
621348
623149
623334
624110
626283
632924
637247
667344
667352
691713
699398
699399
731378
732765
735871
760859
790888
812891
814062
]
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 (
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
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 (402598, 407136, 417899, 418399, 420307, 425655, 439583, 439748, 443792, 447183, 448402, 450238, 462289, 463470, 465933, 467516, 467562, 467613, 467981, 470614, 470628, 472128, 474621, 475630, 476844, 486583, 495279, 496599, 496603, 496611, 501203, 504158, 504171, 507310, 509664, 510572, 512411, 515194, 516791, 523572, 523678, 525547, 527032, 528081, 528441, 533289, 537517, 540071, 540792, 541593, 545086, 550667, 555969, 576113, 579843, 586554, 587553, 587852, 588877, 595731, 595862, 598204, 605007, 605492, 605521, 605595, 606349, 614720, 615444, 621348, 623149, 623334, 624110, 626283, 632924, 637247, 667344, 667352, 691713, 699398, 699399, 731378, 732765, 735871, 760859, 790888, 812891, 814062);
|