Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Mongodb/BSON Fails to Serialize when BigInteger used as an ID

  1. #11
    Join Date
    Apr 2006
    Location
    Dresden, Germany
    Posts
    483

    Default

    Up to version 2.2.4 Querydsl did not convert parameter values before applying them to queries at all. There's a ticket [0] open for Spring Data to hook into this which will be fixed for the RC.

    What exactly is "so slow"? If the collection is big, findAll() will of course read all the data and convert each and every document into the the according domain object which might a) take some time and b) consume quite an amount of memory.

    [0] https://github.com/mysema/querydsl/issues/29

  2. #12
    Join Date
    Sep 2011
    Posts
    25

    Default

    Thanks for your reply.

    There is a testResult.html in the attachment.
    In this test program.
    I insert ten documents and findOne() not over 1 sec, but findAll() spends 18 secs to read.

    So I feel it so slow.(I think the reason maybe due to @DBRef)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •