yesodweb / yesodweb/persistent

Can not upload files, which are larger then about 128k, with persistent-mongoDB

Open
#548 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

mongoDB
Dominant language
Haskell
Stars
486
Forks
306
PR merge metrics
No merged PRs in 30d

Description

When trying to use insert of update to upload a row in which there is a file(ByteString), it might be failed. It will not return any error or msg, but just wait, unless pass Ctrl+C. Build with same codes, PostgreSQL worked well.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the hang in the persistent-mongoDB backend with insert or update and a ByteString larger than about 128k; compare the same operation with PostgreSQL. Trace the MongoDB upload path from those operations and determine where the request stops progressing. Done means large file uploads complete or return an error instead of waiting indefinitely.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, mongodb
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.