Pho3nix
The Legend
- Joined
- Jul 31, 2009
- Messages
- 30,589
Hi all,
Been struggling with this for the last couple days and maybe someone can help me out a bit.
Pulling data from a PosgreSQL box using Npgsql in C# as a web service.
Lately OOM exceptions have been popping up which is a problem
16 tables, 3 have 4 million rows.
Any smarter way to do this VS what I can currently doing and yes, I need all the columns.
/inb4 code nazi's.
Working on creating classes for the tables in the interim to get around this but your thoughts and opinions would be appreciated.
Been struggling with this for the last couple days and maybe someone can help me out a bit.
Pulling data from a PosgreSQL box using Npgsql in C# as a web service.
Lately OOM exceptions have been popping up which is a problem
16 tables, 3 have 4 million rows.
Any smarter way to do this VS what I can currently doing and yes, I need all the columns.
Code:
List<DataSet> jTables = new List<DataSet>();
NpgsqlDataAdapter da = new NpgsqlDataAdapter();
try
{
da.SelectCommand = new NpgsqlCommand("SELECT * FROM \"projectversion\";", conn);
DataSet projectversionTable = new DataSet();
projectversionTable.DataSetName = "projectversionTable";
da.Fill(projectversionTable); --------------------------------------------> breaks here
jTables.Add(projectversionTable);
}
/inb4 code nazi's.
Working on creating classes for the tables in the interim to get around this but your thoughts and opinions would be appreciated.