Click here to Skip to main content
15,889,833 members
Home / Discussions / Database
   

Database

 
GeneralRe: Schedule a trace file in SQL Profiler Pin
jschell5-Dec-17 10:24
jschell5-Dec-17 10:24 
GeneralRe: Schedule a trace file in SQL Profiler Pin
VK196-Dec-17 3:39
VK196-Dec-17 3:39 
GeneralRe: Schedule a trace file in SQL Profiler Pin
jschell8-Dec-17 8:14
jschell8-Dec-17 8:14 
QuestionFatal error: Out of memory (allocated 408944640) (tried to allocate 805306376 bytes) Pin
Mahtabpi24-Nov-17 23:11
Mahtabpi24-Nov-17 23:11 
AnswerRe: Fatal error: Out of memory (allocated 408944640) (tried to allocate 805306376 bytes) Pin
Richard MacCutchan25-Nov-17 0:14
mveRichard MacCutchan25-Nov-17 0:14 
GeneralRe: Fatal error: Out of memory (allocated 408944640) (tried to allocate 805306376 bytes) Pin
Mahtabpi27-Nov-17 22:49
Mahtabpi27-Nov-17 22:49 
GeneralRe: Fatal error: Out of memory (allocated 408944640) (tried to allocate 805306376 bytes) Pin
Richard MacCutchan27-Nov-17 23:26
mveRichard MacCutchan27-Nov-17 23:26 
AnswerRe: Fatal error: Out of memory (allocated 408944640) (tried to allocate 805306376 bytes) Pin
jschell27-Nov-17 10:01
jschell27-Nov-17 10:01 
Adding to the above.

Never attempt to return all records from a table(s) where that table can have a 'large' size where large can range from about 10,000 and on up.

Never do this when the result is for a UI. Just do not allow it. Reason is that no user is going to page through hundreds of pages (multiple items per page) randomly. Rather such a user always knows what they are looking for so require that the user provide more information to narrow the search. This can be designed specifically such that the api (your method) requires paging (page number and page size) and then the method only returns that page.

Additionally the framework or php is providing an implementation of an array which grows to meet the maximum size of data. That is optimized to grow at a rate which is probably doubling every time the previous limit is reached. And you are attempting to put a very large number of records in that array. So at that limit it attempts to double the size of the existing array and fails because there is no more memory in the application. Fix the design rather than attempting to optimize the size yourself (don't return everything.)
GeneralRe: Fatal error: Out of memory (allocated 408944640) (tried to allocate 805306376 bytes) Pin
Mahtabpi27-Nov-17 22:50
Mahtabpi27-Nov-17 22:50 
GeneralRe: Fatal error: Out of memory (allocated 408944640) (tried to allocate 805306376 bytes) Pin
jschell29-Nov-17 11:44
jschell29-Nov-17 11:44 
AnswerRe: Fatal error: Out of memory (allocated 408944640) (tried to allocate 805306376 bytes) Pin
Jochen Arndt27-Nov-17 23:25
professionalJochen Arndt27-Nov-17 23:25 
QuestionI need to install Sql server to write some practice C# applications with small Database Pin
indian14324-Nov-17 6:02
indian14324-Nov-17 6:02 
AnswerRe: I need to install Sql server to write some practice C# applications with small Database Pin
Eddy Vluggen24-Nov-17 6:08
professionalEddy Vluggen24-Nov-17 6:08 
GeneralRe: I need to install Sql server to write some practice C# applications with small Database Pin
PIEBALDconsult24-Nov-17 6:51
mvePIEBALDconsult24-Nov-17 6:51 
AnswerRe: I need to install Sql server to write some practice C# applications with small Database Pin
Victor Nijegorodov24-Nov-17 10:18
Victor Nijegorodov24-Nov-17 10:18 
AnswerRe: I need to install Sql server to write some practice C# applications with small Database Pin
Richard Deeming28-Nov-17 2:42
mveRichard Deeming28-Nov-17 2:42 
QuestionTrggier not working with insert Pin
issam mansour22-Nov-17 22:39
issam mansour22-Nov-17 22:39 
AnswerRe: Trggier not working with insert Pin
Richard Deeming23-Nov-17 1:03
mveRichard Deeming23-Nov-17 1:03 
Questiondatabase log file configuration.. Pin
Member 1353603022-Nov-17 8:31
Member 1353603022-Nov-17 8:31 
AnswerRe: database log file configuration.. Pin
Richard MacCutchan22-Nov-17 21:46
mveRichard MacCutchan22-Nov-17 21:46 
GeneralRe: database log file configuration.. Pin
Member 1353603027-Nov-17 7:12
Member 1353603027-Nov-17 7:12 
AnswerRe: database log file configuration.. Pin
Eddy Vluggen23-Nov-17 1:35
professionalEddy Vluggen23-Nov-17 1:35 
GeneralRe: database log file configuration.. Pin
Member 1353603027-Nov-17 7:11
Member 1353603027-Nov-17 7:11 
GeneralRe: database log file configuration.. Pin
Eddy Vluggen27-Nov-17 7:55
professionalEddy Vluggen27-Nov-17 7:55 
GeneralRe: database log file configuration.. Pin
Member 1353603027-Nov-17 8:12
Member 1353603027-Nov-17 8:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.