Click here to Skip to main content
15,887,214 members

Comments by Member 11727760 (Top 12 by date)

Member 11727760 16-Feb-16 14:28pm View    
Sorry, maybe i was misunderstood. After the query it was obviouvsly returned me just a record, the 'where' clause with the field named 'key' select only one row.
Instead a query that asked a single record, i have noticed that SQL server load the entire table in memory.
When the table, that is growing in time, become bigger to raise the maximum size of memory reserverd into SQL server the query become slowly;
Should the "SELECT TOP 1..." than "SELECT *..."'s solution make it better?
Member 11727760 16-Feb-16 12:23pm View    
The 'Key' named field is unique; it is a string field with a date formatted into.
With this assumption do you think changing the query from the original "Select *..." in your's "Select TOP 1 *.." should make it quickly?

I have observed that the entire Table is loaded into memory, for future query.. but in this case, when the memory raises the maximum value (cause the record table raises...) then disk access happening.
Member 11727760 15-Feb-16 8:34am View    
"SELECT * FROM [Temperatures] WHERE IdMachine = " & Id & " AND Key= '" & Key& "'"
Member 11727760 12-Feb-16 16:07pm View    
I think is not a query problem, i use the where clause with a single field named 'key' that is a string formatted with the date info and minutes details.
This field is also indexed.

I hope there is an unknown configuration option of SQL server, because this delay happened when the used memory raise the maximum size limit.
Member 11727760 12-Oct-15 11:39am View    
Excuse me Sergey if i wasn't clear enough.
The question is how to declare on runtime using emit the follower class
Class StructRegMT {
On as boolean;
NrItem as integer;
SetPointRegMT(64) as integer;
} end Class

then i have to instantiate an oject of this type, can you help also in this?