documents

couchdb views os_process_error - big documents

▼魔方 西西 提交于 2019-12-06 16:04:29
I have a database that we're filling up with documents, some of which are 10 KB, and some of which that are ~70 MB in size. Any view that tries to load these large documents fails with error: {"error":"os_process_error","reason":"{exit_status,0}"} , even this elementary one: function(doc) { emit(null, "test"); } os_process_error is set to 35000, but calling the view dies in ~15 seconds: time curl -X GET http://localhost:5984/portal_production/_design/all_data_keys/_view/view1 {"error":"os_process_error","reason":"{exit_status,0}"} real 0m15.907s user 0m0.016s sys 0m0.000s From a few other

Lotus Notes 7 - copy / move docs. ( parent & response docs ) without changing the UNID ?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 22:40:06
I have 2 databases : let say dbA and dbB. Actually, dbB is a ''child'' database of dbA, because the forms/views/frameset/etc that it contains they all are also in dbA. I want now, to copy from a view ( let say vwA ) from dbA some 8K docs to the same view ( vwA ) from dbB. THese 8k contains both parent and child docs, which in dbA are listing OK, with @Text(@UniqueDocumentID). I just made a test, copy one parent doc and its response, and pasted in the 2nd database, but unfortunately the connection between the 2 docs isn't made... I guess the UNID had changed... Is there any solutions? Thanks

How to get file size of file from iPhone documents folder

丶灬走出姿态 提交于 2019-12-05 11:08:07
I have in which i save video file in documents folder it works fine,but i want to get the file size of the saved file,I have searched but did not get result using NSfileManager,here is the code which i use for saving video.I want to get the file size and show it on UILabel. thanks NSURL*videoURL = [info objectForKey:UIImagePickerControllerMediaURL]; NSLog(@"found a video"); videoData = [[NSData dataWithContentsOfURL:videoURL] retain]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0];

iPhone Documents directory maximum size

吃可爱长大的小学妹 提交于 2019-12-05 09:35:17
I'm just wondering due to new personal project which is the limit (in MB or GB) of documents directory of my app. I just wanna save a lot of photos, so, has documents directory a limit for archiving downloaded photos? Will saving 300MB of photos produce slow downs on 3G? If there is no limit, I think that limit shoud be the 8 16 32 GB of the iPhone, are there any method to know the free space? According to a discussions.apple.com: There is a limit of 2 GB. https://discussions.apple.com/message/7599983?messageID=7599983#7599983?messageID=7599983 Files in the document directory stay there

how to share odt/doc documents over git

别等时光非礼了梦想. 提交于 2019-12-04 03:10:22
the idea is that i want to share documents over git i thought about using Text Document (looks like docx,odt in functionality ) that can be edited with any text editor (not binary). where to find something like this ? any better solution? Have you considered using LaTeX instead of doc or odt? This way you can edit the documents with any text editor and get good looking results. Better yet: you have proper diffs between revisions (no matter the SCM you use). If you don't like the idea of editing the document in a simple text editor take a look at LyX . It provides a gui for editing documents

Delete documents of type in Elasticsearch

时光毁灭记忆、已成空白 提交于 2019-12-03 22:36:06
I want to delete all the documents indexed within a type in Elasticsearch, using the HTTP/REST api, but I don't want to delete the mapping for this type How can I build the query in the URL to do this? Before executing command, index/mapping state; (screenshots taken from elasticsearch head plugin web interface) Command; curl -XDELETE 'http://localhost:9200/publishercategoryeu/autocomplete/_query' -d ' { "query": { "bool": { "must": [ { "match_all": {} } ] } } } ' Result; After executing command, index/mapping state; As we can see we deleted all the documents indexed within a type(mapping)

How to save files in External Storage Public Directory DOCUMENTS on Android 4.1.2

只愿长相守 提交于 2019-12-03 16:55:54
问题 i want to save a file on my Android 4.1.2 smartphone in the documents directory. This code snippet: File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS),"test.txt"); throws this exception: E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NoSuchFieldError: android.os.Environment.DIRECTORY_DOCUMENTS While this one is working: File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),"test.txt"); But i want

How to save files in External Storage Public Directory DOCUMENTS on Android 4.1.2

大兔子大兔子 提交于 2019-12-03 05:12:31
i want to save a file on my Android 4.1.2 smartphone in the documents directory. This code snippet: File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS),"test.txt"); throws this exception: E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NoSuchFieldError: android.os.Environment.DIRECTORY_DOCUMENTS While this one is working: File file = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),"test.txt"); But i want to save my file in my documents directory, not in downloads. Ive read DIRECTORY_DOCUMENTS is only

What is a good MongoDB document structure for most efficient querying of user followers/followees?

纵饮孤独 提交于 2019-12-03 03:08:29
I've been wondering about the ideal document structure for maximum query efficiency for various situations and there's one I want to ask about. It's really borne out of me not really knowing how MongoDB behaves in memory in this specific kind of case. Let me give you a hypothetical scenario. Imagine a Twitter-style system of Followers and Followees. After an admittedly cursory glance, the main options appear to be: In each user document, a "followers" array containing references to all the documents of other users they follow. Followees are found by finding our current user in other users'

Improving performance of preprocessing large set of documents

喜夏-厌秋 提交于 2019-12-02 22:33:20
问题 I am working on a project related to plagiarism detection framework using Java. My document set contains about 100 documents and I have to preprocess them and store in a suitable data structure. I have a big question that how am i going to process the large set of documents efficiently and avoiding bottlenecks . The main focus on my question is how to improve the preprocessing performance. Thanks Regards Nuwan 回答1: You're a bit lacking on specifics there. Appropriate optimizations are going