Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumPossible Bug : 32 000 record limitationPossible Bug : 32 000 record limitation
Previous
 
Next
New Post
7/10/2005 12:18 PM
 
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.
 
New Post
7/11/2005 12:44 AM
 

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?

 


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
7/11/2005 10:21 AM
 
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.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForumForumPossible Bug : 32 000 record limitationPossible Bug : 32 000 record limitation


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out