Re: Renaming / moving a folder with a lot of content : warning the user

ajung <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Such operations are handled basically on the Zope level (CopyManager) and
there is no way to get hold of any kind of "progress" information without
extending the CopyManager API of Zope.
And for a move operation the complete old contents will be unindexed and the
new content will be indexed as well.  By default there is no way to
determine how expensive such an operation might be. From the Plone level you
might introspect the path index and get the number of objects in the related
subtree  - however not only the number objects matter but also there size
and type .

-aj


Luca Fabbri wrote
> On Fri, Dec 6, 2013 at 12:21 PM, Guido Stevens &lt;

> guido.stevens@

> &gt; wrote:
>> On 06/12/13 12:06, thomas desvenain wrote:
>>> Hi,
>>>
>>> Zope allows us to move folders with a lot of contents with very low
>>> risk... except about computation time, because of catalog reindexation.
>>>
>>> On many projects, we had user worried because they got a "proxy error"
>>> when they do such an action which seems very common for them.
>>>
>>> What do you think about displaying a warning when a user "Copy" or
>>> "Rename" a folder with many subcontents ?
>>
>> Or even better: set a modal that says "operation in progress" which ajax
>> polls the backend to see when it starts responding again, and meanwhile
>> shows an incrementing timer to keep the user busy. The tricky part is do
>> do that in a way that is multi-instance loadbalancing safe.
>>
> 
> You need also to check for too-many conflict error, when moving folders
> fails.
> 
> I'm wondering if Plone is still reindexing all of the object data
> instead of path-related info only, or not.
> 
> 
> 
> -- 
> -- luca
> 
> twitter: http://twitter.com/keul
> linkedin: http://linkedin.com/in/lucafbb
> blog: http://blog.keul.it/
> 
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK 
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Plone-developers mailing list

> [email protected]

> https://lists.sourceforge.net/lists/listinfo/plone-developers





--
View this message in context: http://plone.293351.n2.nabble.com/Renaming-moving-a-folder-with-a-lot-of-content-warning-the-user-tp7569316p7569335.html
Sent from the Core Developers mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.