Hi Ivan and Ilya,

thank you both for response. I'll try to filter it with use of the total nodes 
attribute - it looks like that it will work.

I would find it useful because use the schama is the easiest way for me to 
determine namespaces of documents in a collection now (all documents in a 
collection should have the same namespace). I have a problem when user uploads 
wrong files (with dirrefent namespaces) into some collection and then he 
realizes it and removes them. But I should probably do some check before the 
upload in the first place...

Zdenek


From: Ivan Shcheklein [mailto:[email protected]]
Sent: Tuesday, February 26, 2013 11:46
To: Ilya Taranov
Cc: Sojma, Zdenek; [email protected]
Subject: Re: [Sedna-discussion] Recalculation of descriptive schema

Actually, it's still possible to filter doc($schema) on total_nodes attribute )

On Tue, Feb 26, 2013 at 1:25 PM, Ilya Taranov 
<[email protected]<mailto:[email protected]>> wrote:
There is absolutely no possible way to clean up schema until you do 
import/export.

>> For now, you can try to filter out empty schema nodes using "total_nodes" 
>> attribute value.

That won't work, because items of children arrays correspond to these schema 
nodes even when there are no actual children.

On Tue, Feb 26, 2013 at 1:03 AM, Ivan Shcheklein 
<[email protected]<mailto:[email protected]>> wrote:
Hi Zdenek,

AFAIK, there is no way to recalculate it right now. Probably, we can try to 
delete unused schema nodes.

For now, you can try to filter out empty schema nodes using "total_nodes" 
attribute value.

BTW, why do you need it in the first place.

Ivan Shcheklein,
Sedna Team

On Mon, Feb 25, 2013 at 4:59 PM, Sojma, Zdenek 
<[email protected]<mailto:[email protected]>> wrote:
Hello,

I want to ask you, if there is a way, how to recalculate descriptive schema of 
a collection. My goal is to remove a document from the database and ensure that 
elements, which were only in that document, will not remain in the schema.

Thanks a lot.

Best regards,

Zdenek Sojma
Software Application Engineer I - Test Systems
Engineering Test Services

_______________________Honeywell
Honeywell International s.r.o.
Turanka 100/1387
Brno 627 00, Czech Republic

Phone:         +420 532 115 446<tel:%2B420%20532%20115%20446>
Cell Phone:  +420 739 626 842<tel:%2B420%20739%20626%20842>
E-mail:          [email protected]<mailto:[email protected]>

[ETS Brno logo]


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Sedna-discussion mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/sedna-discussion


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Sedna-discussion mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/sedna-discussion


<<inline: image001.png>>

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to