2017-07-10 12 views
0

多数のバイナリオブジェクトを含むパフォーマンスをテストするには、Exact Online内で利用できるように1.000以上のドキュメント添付ファイルが必要です。パフォーマンステストの一括アップロード写真

ユーザーインターフェイスを介して読み込むのは非常に面倒です。文書あたりのクリック数が多く、簡単にドラッグできません。&が落ちます。電子メールはオプションかもしれませんが、それでも1.000の文書があれば面倒です。

大量のドキュメント添付ファイルをExact Onlineに高速に読み込む方法はありますか。

答えて

0

最も簡単な方法は、ウェブサイトlorempixel.comを使用することでした。ユニークなヒットごとに、構成可能なディメンションを持つ新しい素敵な画像が得られます(スループットは、1秒あたりに作成されるドキュメント添付ファイルの約1000 KBです)。

set use-http-cache false 

use 868056 /* Set division. */ 

insert into exactonlinerest..documents 
(subject 
, type 
) 
select 'Sample document #' || value 
,  101 
from range(1000)@datadictionary /* Load 1,000 documents. */ 


insert into exactonlinerest..DocumentAttachmentFiles 
(attachment 
, document 
, filename 
) 
/* And each document gets an additional attachment per time this insert is run. Run it 10 times to load 10 document attachments per document. */ 
select httpget('http://lorempixel.com/400/400/?val=' || value) attachment 
,  dct.id 
,  value || '.jpg' 
from range(1000, 1)@datadictionary 
join exactonlinerest..documents dct 
on  dct.type = 101 
and dct.subject like 'Sample document #%' 
and dct.subject = 'Sample document #' || value 
関連する問題