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 
 
blob data size?

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



Joined: 08 Jan 2005
Posts: 100

PostPosted: Wed Nov 19, 2008 6:30    Post subject: blob data size? Reply with quote

I setup a persistent vault with nwnx4 v1.09.

And it seems that there is a size limit storing an object as a blob in the database. Is this correct? What is the size limit?

The issue I'm seeing is storing bags of holding with items (greater than 50) don't seem to make it into the database, and I'm not seeing any MySQL errors.

Thanks!
_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Nov 19, 2008 9:54    Post subject: Reply with quote

Maximum BLOB size is 65 536 bytes.
You can use MEDIUMBLOB (up to 16 777 216 bytes) or LONGBLOB (up to 4 GB).
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Xildjian



Joined: 08 Jan 2005
Posts: 100

PostPosted: Wed Nov 19, 2008 18:15    Post subject: Reply with quote

oh thanks.
I didn't know those where options Smile
_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
Xildjian



Joined: 08 Jan 2005
Posts: 100

PostPosted: Thu Dec 11, 2008 6:33    Post subject: Reply with quote

So I updated my table blob column as a LONGBLOB with the Query Browser tool, but I still seem to be having people loose bags placed into the vault. They have said the bags had over 100 items.

Is it possible that there is another size limitation somewhere besides the database?
Is it possible the database table wasn't really updated as a LONGBLOB even tho editing the table with the Query browser says it's now a LONGBLOB field?

Is there a setting in the mysql plugin for nwnx4 that should be set to tell it to save data as a longblob instead of a blob?

It seems unlikely that a bag of holding with 100+ items is exceeding the 4gig size limit.

Thanks!
_________________
Member Shadow of Iniquity development team
Back to top
View user's profile Send private message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Fri Dec 12, 2008 9:17    Post subject: Reply with quote

Xildjian wrote:
So I updated my table blob column as a LONGBLOB with the Query Browser tool, but I still seem to be having people loose bags placed into the vault. They have said the bags had over 100 items.

Is it possible that there is another size limitation somewhere besides the database?
Is it possible the database table wasn't really updated as a LONGBLOB even tho editing the table with the Query browser says it's now a LONGBLOB field?

Is there a setting in the mysql plugin for nwnx4 that should be set to tell it to save data as a longblob instead of a blob?

It seems unlikely that a bag of holding with 100+ items is exceeding the 4gig size limit.

Thanks!

LOL...
It's been a long time since this cropped up.
When you store the 'container' you DO NOT store it's contents.
You need to loop through the contents of a 'container' and store them separately.

FYI, the data of a 'container' is simply a list of object-id's, not the objects themselves.

Cheers
Gryphyn
Back to top
View user's profile Send private message
Kres



Joined: 01 Mar 2008
Posts: 13

PostPosted: Wed Jan 21, 2009 23:08    Post subject: Reply with quote

This also falls within the container stack within a stack which is like arrow stacks for example... cap is 98 in this method leaving one slot for a overflow check. I am working on an infinate solution and have it tested out to 122 items than it fails not due to size but due to time out errors within the plugin.
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