Patches
Search the entire project
This project's trackers
This project's forums
This project's tasks
This project's releases
This project's documents
This project's news
Project
People
Skill
Advanced search
Log In
|
New Account
Home
My Page
Projects
Code Snippets
Project Openings
Npgsql .Net Data Provider for Postgresql
Summary
Activity
Forums
Tracker
Lists
Tasks
Docs
Surveys
News
SCM
Files
[#1010193] NpgsqlConnectionString caching support patch
View Trackers
|
Patches
|
Download .csv
|
Monitor
Date:
2007-11-21 10:22
Priority:
3
State:
Open
Submitted by:
Tao Wang (
dancefire
)
Assigned to:
Nobody (None)
Category:
Group:
Resolution:
None
Summary:
NpgsqlConnectionString caching support patch
Detailed description
This patch is adding caching ability to NpgsqlConnectionString class. It will improve the NpgsqlConnectionString.ParseConnectionString() function for recent parsed connection strings.
Following functions are added to NpgsqlConnectionString class:
private static NpgsqlConnectionString LookupCached(string CS);
private static void CacheCS(string CS, NpgsqlConnectionString obj);
And a public property for setting cache size are added:
public static int CacheSize{get; set;}
And NpgsqlConnection.ChangeDatabase() also be modified to avoid broken ChangeDatabase() function.
A test case, ChangeDatabaseTestConnectionCache(), is added to test calling ChangeDatabase() will never affect other connections which sharing same NpgsqlConnectionString object.
This patch is based on Npgsql2.0beta1 src.
Followup
No Followups Have Been Posted
Attached Files:
Attachments:
NpgsqlConnection.cs.patch
NpgsqlConnectionString.cs.patch
ConnectionTest.cs.patch
Changes:
Field
Old Value
Date
By
File Added
265: ConnectionTest.cs.patch
2007-11-21 10:23
dancefire
File Added
264: NpgsqlConnectionString.cs.patch
2007-11-21 10:23
dancefire
File Added
263: NpgsqlConnection.cs.patch
2007-11-21 10:22
dancefire