Closed dev-affective-de closed 6 years ago
I just tagged vapor-community/postgresql version 2.1.1 that fixes the same memory leak cleaner on a lower level. Please try updating to it and see if it works for you too.
Hello vzsg,
your fix works fine. Many thanks.
When a datamodel is saved, the memory allocated by PostgreSQL Connection.swift
public func execute(_ query: String, _ values: [Node] = []) throws -> Node
call toextension Node
public func bind(with configuration: Configuration) -> Bind
is not released.For testing I changed the function PostgreSQL Connection.swift execute to:
I'm not sure if that works fine in all cases. Specially I'm not sure if I find the right capacity. But it looks like the bug is fixed.