February 24, 2018 at 11:17 am
Comments posted to this topic are about the item JSON performance
February 25, 2018 at 12:03 am
Good question thanks Evgeny
...
February 25, 2018 at 10:31 pm
Nice question, thanks Evgeny
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
โlibera tute vulgaris exโ
February 26, 2018 at 11:00 am
I think the assertion that "standard indexes" will improve JSON performance is misleading. That is only the case if "standard indexes" includes indexing on computed columns. Sticking a normal index on the JSON column will only improve performance to the extent that a covering index improves performance because it reduces the number of pages relative to the clustered index because there are missing columns. To actually get index-like behavior (the ability to retrieve a subset of records based on their position within the index), one must create a computed column and then index that computed column. And that's exactly what the link https://docs.microsoft.com/en-us/sql/relational-databases/json/index-json-data indicates. But I wouldn't usually refer to an index on a computed column as a "standard index".
February 26, 2018 at 11:23 am
Heh... "JSON performance"... Isn't that what they call an "oxymoron"? ๐
--Jeff Moden
Change is inevitable... Change for the better is not.
February 27, 2018 at 8:11 am
Another problem: JSON could be stored in a (N)VARCHAR(MAX) field which could not be added to an index (only included, but this would only allow full index scans, even if you use a sophisticated LIKE) ...
God is real, unless declared integer.
February 28, 2018 at 5:58 am
Jeff Moden - Monday, February 26, 2018 11:23 AMHeh... "JSON performance"... Isn't that what they call an "oxymoron"? ๐
Yeah, I think it is. I thought a couple of the answers available were good, though. They made me turn my head and wonder if they're the "next big shiny thing" on Microsoft's hit list.
March 1, 2018 at 4:00 am
t.ovod-everett - Monday, February 26, 2018 11:00 AMI think the assertion that "standard indexes" will improve JSON performance is misleading. That is only the case if "standard indexes" includes indexing on computed columns. Sticking a normal index on the JSON column will only improve performance to the extent that a covering index improves performance because it reduces the number of pages relative to the clustered index because there are missing columns. To actually get index-like behavior (the ability to retrieve a subset of records based on their position within the index), one must create a computed column and then index that computed column. And that's exactly what the link https://docs.microsoft.com/en-us/sql/relational-databases/json/index-json-data indicates. But I wouldn't usually refer to an index on a computed column as a "standard index".
+1
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply