2015 Mar 04 10:10 AM - edited 2015 Mar 04 11:10 AM
According to the documentation for creating a materialized view, the sort_collation setting must be Internal. I have set it to the ID 51 to get the proper sorting for Umlaute. Now I am wondering if there is a way to set this opion to Internal and still have the sort collation behave like if I had set it to 51?
(SQL Anywhere 12, Version 12.0.1.4201).
Regards, Robert
Request clarification before answering.
In my understanding, there's no problem in either setting the sort_collation temporarily to a different setting or to explicitly use SORTKEY(MyColumn, MySortCollation) when you run queries against the mat. view. However, the drawback might be that the mat. view won't be used automatically by the optimizer when you do not refer to it in your queries - that's my understanding of the phrase "for the view to be used by the optimizer" from the v12.0.1 docs which state:
The following database options must have the specified settings when a materialized view is created; otherwise, an error is returned. These database option values are also required for the view to be used by the optimizer:
- ansinull=On
[...]- sort_collation=Internal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
30 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.