logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
SQLExecDirect("SELECT * FROM ....

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
morikahn



Joined: 04 Aug 2006
Posts: 5

PostPosted: Fri Aug 04, 2006 0:49    Post subject: SQLExecDirect("SELECT * FROM .... Reply with quote

Alright, I should have realized this early on.. but its only hit me now.

There is a limit to have many rows you can retrieve at once from a table.

I'm pretty sure I can work around this, but I'm curious how this limitations is set, and can it be modified.
Back to top
View user's profile Send private message
Grumalg



Joined: 04 Nov 2005
Posts: 70

PostPosted: Fri Aug 04, 2006 4:52    Post subject: Reply with quote

As far as the database engine is concerned, you can get far more records returned than you'll ever need in NWN. The limit you'll hit first is TMI errors from the game engine if you try to loop processing too many records. It is possible to split up the processing if you need to deal with too many records by useing a LIMIT clause in the SQL to set a max number of records you deal with in a chunk.

--- Grumalg ---
Back to top
View user's profile Send private message
morikahn



Joined: 04 Aug 2006
Posts: 5

PostPosted: Fri Aug 04, 2006 5:40    Post subject: Reply with quote

Thanks. I was a TMI.

Now to figure out a way to prevent that Smile.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group