Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Can we reuse a DB connection in Nifi?

avatar

Is there a way for Nifi to keep a DB connection open as it processes different incoming flowfiles? Or will the processor ExecuteSQL processor open/close the connection with every flowfile it processes?

1 ACCEPTED SOLUTION

avatar
Super Guru
@Eyad Garelnabi

You mean other than using DBCPConnectionPool service? I think connection pooling is used to reuse the connection but connection is closed and returned to the pool.

View solution in original post

2 REPLIES 2

avatar
Super Guru
@Eyad Garelnabi

You mean other than using DBCPConnectionPool service? I think connection pooling is used to reuse the connection but connection is closed and returned to the pool.

avatar

Thanks @mqureshi . I didn't realize ExecuteSQL used a connection pool.