I have a very simply query in my projects that returns ~1.3 million rows:
var aliases = ctx.Query<sec_entity_alias>(@"select * from sec_entity_alias");
The class that is mapped to is:
public partial class sec_entity_alias
{
public int id { get; set; }
public int sec_entity_id { get; set; }
public byte sec_entity_alias_type_id { get; set; }
public string symbol { get; set; }
public virtual sec_entity_alias_type sec_entity_alias_type { get; set; }
}
When I run the query it hangs indefinitely and pegs the CPU. When I remove the dapper type mapping and instead run the following, the query returns all rows in ~200ms
var aliases = ctx.Query(@"select * from sec_entity_alias");
This issue suddenly started appearing today after I upgraded to Windows 10 from Windows 8.1
Has anyone else noticed this issue or am I missing something apparent here?
EDIT:
I just ran the same code on a Windows'12 R2 server and it ran completely fine.
Below is a profiling session where spends the most time on the Windows 10 machine.
Another interesting tidbit: when I create a new project and only query the sec_entity_alias table it works fine but in my main project where I load some other tables first is where it encounters the issue.