Forum: Npgsql: bytea handling performance improvements
Posted by: Francisco Figueiredo jr. Today I just commited Hubert patch (http://pgfoundry.org/tracker/index.php?func=detail&aid=1000458&group_id=1000140&atid=590) to send and receive bytea values as byte[] streams instead of translating them to bytea strings. This gives a big improvement in memory usage. In fact, as Hubert says, it reduces in 5 times the memory usage of bytea handling. I also commited a patch to better Npgsql network handling. We were abusing of Stream.Flush() calls which reduced a lot the gain obtained from BufferedStream usage. Please, give it a try and let us know if has any problem.
|
Latest NewsNpgsql 2.0.12 beta2 released!Francisco Figueiredo jr. - 2011-09-29 02:30 -
0 Comment Read More/Comment
Npgsql receives donation of an MSDN subscription!!Francisco Figueiredo jr. - 2010-08-23 22:13 -
0 Comment Read More/Comment
Entity Framework Sample postedFrancisco Figueiredo jr. - 2009-11-12 20:48 -
2 Comments Read More/Comment
|
Monitor Forum | | You have to use NpgsqlCommand.Prepare first [ reply ] By: Francisco Figueiredo jr. on 2005-12-15 12:49 | [forum:1000961] |
|
In order to get benefits from performance improvements, you will have to call NpgsqlCommand.Prepare before using any code which uses bytea parameters. To send and to receive. I forgot to say that on my original post :) |
|

