(filename)
| 604 | |
| 605 | |
| 606 | def read_json_file(filename): |
| 607 | assert proc_client is not None |
| 608 | coll = proc_client.perftest.corpus |
| 609 | with tempfile.TemporaryFile(mode="w") as temp: |
| 610 | for doc in coll.find({"file": filename}, {"_id": False}): |
| 611 | temp.write(json.dumps(doc)) |
| 612 | temp.write("\n") |
| 613 | |
| 614 | |
| 615 | def insert_gridfs_file(filename): |