View previous topic :: View next topic |
Author |
Message |
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Wed Nov 19, 2008 6:30 Post subject: blob data size? |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Wed Nov 19, 2008 9:54 Post subject: |
|
|
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 |
|
|
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Wed Nov 19, 2008 18:15 Post subject: |
|
|
oh thanks.
I didn't know those where options _________________ Member Shadow of Iniquity development team |
|
Back to top |
|
|
Xildjian
Joined: 08 Jan 2005 Posts: 100
|
Posted: Thu Dec 11, 2008 6:33 Post subject: |
|
|
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 |
|
|
Gryphyn
Joined: 20 Jan 2005 Posts: 431
|
Posted: Fri Dec 12, 2008 9:17 Post subject: |
|
|
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 |
|
|
Kres
Joined: 01 Mar 2008 Posts: 13
|
Posted: Wed Jan 21, 2009 23:08 Post subject: |
|
|
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 |
|
|
|