I have tried by adding 10000 records in table, it is working fine for the same and able to add fetch without any error. But when tried to add more than 10000 records in the same table it is giving service time out error. As service itself is throwing timeout error. I dont't want to increase the timeout in web.config.
I am using Oracle SQL developer as a database engine and default connection string with entity framework.
I tried to add this piece of code in controller, but it is not working.
var result = this.Json(model, JsonRequestBehavior.AllowGet);
result.MaxJsonLength = int.MaxValue;
System.Web.HttpContext.Current.Server.ScriptTimeout = 300;
This is the error i am getting while trying to add more than 10000 records