Archive for July, 2007

23
Jul

XmlImporter - dealing with >20.000 items

hey there,

here it comes, my first really helpfull post, hopefully. So for my current project we are dealing with more than 20.000 items, and all these items are linked to each other to provide a really huge and rich application. You can see the current Site here - think about importing the whole content.

I came here a couple of weeks after they have started the project and imported ~5.000 items into the sitecore tree already. So that was pretty fast and not a real problem. They used the XmlImporter free module out of the Sitecore SDN and we have applied a couple of improvements, like checking if the item already exists that you are not having 3 items of the same content, running the importer from a webservice to run the import out of an windows application etc.

After importing a lot more content the importer takes about 30 seconds per item title (and subitems and cross links). Well for around >20.000 items this cannot be the solution. 

So we have profiled the import of one item and found a couple of issues. After downloading the “original” XmlImporter I have seen that the lines I have modified not exist in the original one. But I can give you a couple of advices:

Avoid this:

Item item = parent.Items[”some key”];

to get the item, if you are dealing with that count of items, it takes a while to search the tree for the key.

Use this instead:

Item item = Sitecore.Configuration.Factory.GetDatabase(”master”).SelectSingleItem(string.Format(”{0}/{1}”,parent.Paths.Fullpath, “some key”));

To be honest, I’m not sure that this is the perfect solution be we have improved the speed by our importer from 30 sec / item title to ~2 sec / item title, depends of the cross links the item has.

Update: In order to Lars F. Nielsen, who remind me of the fact that the I did not mentioned that we are using our workstations and a shared database in our development enviroment. And also I made a mistake by saying that it is an item which takes about ~3 seconds. It is the title which takes about 3 seconds, and that includes a couple of Items which are created as well. See the comments for more information.

22
Jul

css - love or hate

I mentioned I would write another post.

There is an error on your site.
The netzkern logo is too close on the text.

Correct!Well, I know; but I can’t fix it. If you are using Firefox it is correct, only the Internet Explorer do some stupid things. CSS is a tricky thing, if you probably know that issue, please write me a message - for today I give up trying. Sometimes it is correct in the IE as well. I don’t know…

21
Jul

Hey there…

Welcome to the real world. This is just a test, and I don’t want to have nothing here, so:

First post.

Sitecore.netAfter three days with Phil and Torben from Sitecore, they have persuaded me to create a blog as well. So first I have to apologize for my bad english, but I’m still trying to improve that.

Currently I’m working for netzkern GmbHQuickflix Ltd. in Perth, WA, Australia to help them setting up their new website and content based on Sitecore. I started working with Sitecore in 2006 for netzkern GmbH in Germany. The CEO of netzkern gave me the opportunity to get a couple of weeks off and go to Australia and earn a lot of experience (Thanks for that at this point.).

I have a couple of things I want to share with the Community of Sitecore, that’s why I obviously have started the blog. I’m trying to get these things online in the next week and hopefully write a couple of more entries; but you will see I’m not the “writer guy” - but perhaps I will learn that.
So, stay tuned and thanks for your company. Cheers chris




July 2007
M T W T F S S
    Aug »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Recent Entries