Ayende @ Rahien

Hi!
My name is Ayende Rahien
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:

ayende@ayende.com

+972 52-548-6969

@

Posts: 5,947 | Comments: 44,540

filter by tags archive

Small touches: Complex text in RavenDB


This is what we call a “mini feature”, something that you’ll probably not notice unless pointed out to you. Often, we want to store documents that contain multi line strings properties. JSON has a very simple way to handle that:

image

And it works, and if the text is small, it is even readable. But it isn’t really working on anything even remotely complex or long. So we have worked to fix that:

image

Now you can actually read this much more easily. We run into this when we look at stack trace information, where without line breaks, it is nearly impossible to see what is going on.


Comments

Daniel Häfele

This is so simple, but extremly usefull.

I like what I see of RavenDB 3.

Itamar Syn=Hershko

This is not a "mini-feature". This is a usability feature. There's a huge difference.

khalid abuhakmeh

I think I'd rather see it how I stored it with all the newlines and tabs. It can help me identify quickly issues with text, where as this "feature" could make that more difficult. Maybe a toggle between both views would help more.

Ayende Rahien

Khalid, This is a presentation only feature, it only impact how you see things, it doesn't change anything in the way the data is stored.

Jahmai Lay

Does it always do \r\n, or does it support reading/writing just \n too?

Ayende Rahien

Jahmai, We will read \n, but we'll always write \r\n.

Troy

I can see @Khalid's point and can see the benefit of a toggle view as well.

Koen

+1 for a toggle switch. Sometimes you want to know the exact characters in place...

mike

This probably indicates other problems, but consider a document that contains stringified JSON as one of its properties. i.e. { "requestId": "1234", "requestBody": "{\"foo\":\"bar\",\r\n\"fizz\":\"buzz\"}" } I'm going to get confused! +1 for toggle.

I actually kind of like the way Visual Studio does it in watch windows. Normally you see the encoded text, but you click that little magnifying glass to see it with actual line breaks.

herry

+1 for toggle view

Ayende Rahien

Troy & Koen, There is a toggle for that, sure.

Comment preview

Comments have been closed on this topic.

FUTURE POSTS

No future posts left, oh my!

RECENT SERIES

  1. RavenDB Sharding (2):
    21 May 2015 - Adding a new shard to an existing cluster, the easy way
  2. The RavenDB Comic Strip (2):
    20 May 2015 - Part II – a team in trouble!
  3. Challenge (45):
    28 Apr 2015 - What is the meaning of this change?
  4. Interview question (2):
    30 Mar 2015 - fix the index
  5. Excerpts from the RavenDB Performance team report (20):
    20 Feb 2015 - Optimizing Compare – The circle of life (a post-mortem)
View all series

RECENT COMMENTS

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats