[daisy] Problem with long documents with tables in v1.3

Paul Focke paul at outerthought.org
Fri Jun 8 12:38:08 CDT 2007


On Fri, 2007-06-08 at 12:38 -0400, Thomas.Connally at dds.net wrote:
> 
> Hi, 
> 
> We're having a problem with a long document containing lots of tables.
> When I make a PDF of the doc, it is about 47 pages. 
> 
> Almost all the content of the document are tables (two columns, lots
> of rows, nothing fancy). 
> 
> The problem that's occurring is that making a change in the document,
> and then saving, takes a very long time (more than two minutes).
> Sometimes it just crashes the browser, without saving the changes
> (lost work for the writer). However, when it crashes the browser and
> another user tries to edit the doc, it says there is still a lock on
> the document. 
> 
> Is Daisy incapable of handling long documents containing tables? 
> 
>  I would be sad to hear this, as we have been using Daisy with no
> problems so far, but this would really be a drag if it can't handle
> long documents with tables, as we have lots of documents we need to
> add like this. 
> 
> Also, is this a problem that others have experienced, and has it been
> addressed in more recent versions? 
> 
> We are using version 1.3 at this time, and are planning to upgrade to
> 2.0. But if this is still a problem, I may reconsider the upgrade. 
> 
> Thanks, 
> Thomas

First of all the document probably isn't that large I'd estimate about
200KB. You can always check this by running the query 
select name, $SimpleDocumentContent.size where id=<docId>
if your document is of the type SimpleDocument. 
Daisy can definitely handle documents of that size.

Anyway that doesn't really help you with your problem. When you want to
edit the document content all the html must be loaded into the htmlarea
of the browser. I suspect that it is your browser that just can't handle
the volume. It would help if you could share which browser & version you
are using?
I've gone ahead and tested this myself on a daisy-2.0 viewed on firefox
2.0. I created a document with the equivalent of a 160 pg pdf and it did
give me some troubles. These were not when saving however but at load
time. The browser complained that a script was running too long but if I
ignored the warning long enough I'd eventually get the document loaded.
It didn't crash the browser so either my browser can deal with tables of
that size in the htmlarea or there were some changes in the javascript
of the document editor between daisy-2.0 & 1.3 that fixes the problem.

About the lock. Since Daisy doesn't know that the browser has crashed
it's assuming that it is still being edited so it'll stay locked. By
default a document will stay locked (when it is not being edited) for
15min maximum. The user who has the lock should be able to go into edit
mode and release the the lock by saving or pressing cancel.

Paul


More information about the daisy mailing list