Fix memory-intensive getCPFPUnindexedBlocks mysql query
This commit is contained in:
1 parent
6f376f8687
commit
b8644d05ba
1 file changed
+1
@@ -748,6 +748,7 @@ class BlocksRepository {
|
|||||||
SELECT height
|
SELECT height
|
||||||
FROM compact_cpfp_clusters
|
FROM compact_cpfp_clusters
|
||||||
WHERE height <= ? AND height >= ?
|
WHERE height <= ? AND height >= ?
|
||||||
|
GROUP BY height
|
||||||
ORDER BY height DESC;
|
ORDER BY height DESC;
|
||||||
`, [currentBlockHeight, minHeight]);
|
`, [currentBlockHeight, minHeight]);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user