Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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.