MarkLogic error "XDMP-FRAGTOOLARGE" while saving 200MB + file using REST

When I try to save a 200MB + xml file in marklogic using REST it gives the following error: XDMP-FRAGTOOLARGE: Fragment of /testdata/upload/submit.xml too large for in-memory storage

".

I tried the Fragment Roots and Fragment Parents parameter but still gets the same error.

But when I store the file without the .xml extension 'in the uri. it saves the file, but doesn't execute Xquery .

+3


source to share


1 answer


MarkLogic will not be able to output mime from uri without extension. Then it goes back to storing it as binary.

I think if you use xdmp: document-load from QConsole, you can load it correctly, as it won't try to save the entire document in memory first. This won't help you, although you will most likely run into the same error elsewhere. The REST api will have to pass it in memory for this to not work.



You can increase your memory settings in the admin UI, but you are generally better off by splitting your login. MarkLogic Content Pump (MLCP) allows you to do this using aggregate_record parameters. This will split the file into smaller chunks based on a specific element and save them as separate documents inside MarkLogic.

NTN!

+4


source







All Articles