Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Forum Module [L...  Possible Bug : 32 000 record limitation
Previous Previous
 
Next Next
New Post 7/10/2005 10:18 AM
User is offline Vazzie van Zijl
42 posts
presstopia.com
10th Ranked


Possible Bug : 32 000 record limitation 
I did an import of about 20 000 posts into the forum. Everything worked fine the first time around, but a second import of the same records (after deleting the first batch) resulted in the PostID going over 40000 since it's an identity column. At this point any thread over 32000 (estimate) started throwing "Value too big or small for Int16". Even after deleting all the re-imported records, I had to re-seed the PostID before new messages started working again.

Presstopia.Com
 
New Post 7/10/2005 10:44 PM
User is offline Crispy
3433 posts
www.apptheory.com
4th Ranked










Re: Possible Bug : 32 000 record limitation 

Yes, there was an issue in the code where some places limited some items to Int16.  It would save memory within the application running but is not good when it limits the application overall.  This was from the original code and I have corrected it for next release.  It is something that is not exposed until there are lots of users or lots of posts. 

I am curious, what did you import these from?  Aside from this issue, were there any others?

 



 
New Post 7/11/2005 8:21 AM
User is offline Vazzie van Zijl
42 posts
presstopia.com
10th Ranked


Re: Possible Bug : 32 000 record limitation 
Thanks Crispy, I knew you guys would be on it

The posts were imported from a WebWizGuide v.7.91 forum. It was surprisingly easy and aside from the datatype problem it worked like a charm. The main steps were :

1) Created a special "Archive" forum on my new site for all the imported posts
2) Created a special "Conversion" user to which I attached all the imported posts
3) Wrote an .aspx script that extracted all the posts and threads from the old forum DB and fed them to the PostAdd() function of the DotNetNuke.Modules.Forum.PostController class.

The biggest/trickiest issues were :

1) I had to re-adjust the paths to the smileys and pictures (users could upload images in the old forum) so the images weren't broken. I did a scan/replace right before I fed the post to PostAdd (this is actually why I ran the import twice, I forgot about the paths the first time around).
2) I had to make sure that the first post in each thread was fed to the PostAdd() function with a Parent Id of "0" so it knew to start a new thread on the new forum.
3) The PostAdd() function does not allow you to specify the date of the post so all the posts are imported with the current system date. I had to make sure I feed the posts to PostAdd() in the correct order in which they were entered on the old folrum so the posts are at least in the right order when users view the imported posts on the new forum. However, you can specify the "Pinned Date". I therefore used the old forums's post date as the pinned date, with the idea that I could set the new forum's post date = pinned date after the import.
4) As I mentioned before, I didn't import the users, but as the users re-register on the new site over time, I could then write another script that would be ran periodically to attempt to attach the imported posts to the their proper users on the new site where possible, instead of the "Conversion" user.


Presstopia.Com
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Forum Module [L...  Possible Bug : 32 000 record limitation
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com
SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com
AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP