Skip to main content
shrunk question for clarity
Source Link
ashleedawg
  • 1.2k
  • 8
  • 20

"Magic Magic Column: [User Link]"Link] produces "Out of Resources" error on simple SEDE queries

I ran into a "rare error" on SE Data Explorer and I've saved 3 near-identical queries on SEDE to demonstrate this potential [minor] database problem.Question shrunk since the issue is known and will be addressed in due time. (View complete question.)

 

Unfinished so pretty simple so far, this is what the query's supposed to do:Error in SEDE when using magic column: error

  • List ID and CreationDate of all questions asked since 𝓷 days before "today", where 𝓷 is specified by in the parameter box below the query. (For example, 7 returns questions asked in the last 7 days, which is what the links below will default to.)

  • If the question has been answered, list the CreationDate of the first answer, and the difference (in minutes) between the ask and the answer. (If the question hasn't been answered, leave these values NULL.)


  • Example #1: Control query (a "control"; nono magic column) runs fine for any timeframe including "all of history".

  • Example #2: is the same asExample #1 except for an+ added magicautomated magic column [Post Link] field added. It runs fine for
    - queries 7 days back. Change the parameter to 10 or more to repro the error:

    without error
    - change parameter to 10 or more to reproduce The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.error.

  • Example #3: is the same asExample #1 except I+ added custom column[My Post Link]: provides the
    - same functionality thatas '[Post Link]" does, using a 3rdan additional join to the same table, which was unnecessary but for the sake of adding complexity. It works without a problem(Runs properly.)

I've had the same error on other queries using Magic Columns. The only other mention of this error I could find is: "Out-of-resources when trying to run a popular DataExplorer query" - including a workaround from @rene to substitute for [User Link] - showing that this is a known issue (since at least 2016) and hasn't been addressed.Similar question:


 

I was directed to report any SEDE issues here although in's not a huge issue since I can easily re-create the Magic Column's functionality (in less time than it took to describe the problem):Workaround Links:

'site://posts/' + cast(q.id AS nvarchar)+'|'+q.title  as [My Post Link] 

...where q is an alias for the Posts table instance that the questions are being drawn from.

  • 'site://posts/' + cast(id AS nvarchar)+'|'+title as [Alt. Post Link]
  • 'site://users/' + cast(userid as nvarchar) as [Alt. User Link]
    (Source: @Rene)

"Magic Column: [User Link]" produces "Out of Resources" error on simple SEDE queries

I ran into a "rare error" on SE Data Explorer and I've saved 3 near-identical queries on SEDE to demonstrate this potential [minor] database problem.

Unfinished so pretty simple so far, this is what the query's supposed to do:

  • List ID and CreationDate of all questions asked since 𝓷 days before "today", where 𝓷 is specified by in the parameter box below the query. (For example, 7 returns questions asked in the last 7 days, which is what the links below will default to.)

  • If the question has been answered, list the CreationDate of the first answer, and the difference (in minutes) between the ask and the answer. (If the question hasn't been answered, leave these values NULL.)


  • Example #1: (a "control"; no magic column) runs fine for any timeframe including "all of history".

  • Example #2: is the same as #1 except for an added magic [Post Link] field added. It runs fine for 7 days back. Change the parameter to 10 or more to repro the error:

    The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.

  • Example #3: is the same as #1 except I added [My Post Link]: provides the same functionality that '[Post Link]" does, using a 3rd join to the same table, which was unnecessary but for the sake of adding complexity. It works without a problem.

I've had the same error on other queries using Magic Columns. The only other mention of this error I could find is: "Out-of-resources when trying to run a popular DataExplorer query" - including a workaround from @rene to substitute for [User Link] - showing that this is a known issue (since at least 2016) and hasn't been addressed.


 

I was directed to report any SEDE issues here although in's not a huge issue since I can easily re-create the Magic Column's functionality (in less time than it took to describe the problem):

'site://posts/' + cast(q.id AS nvarchar)+'|'+q.title  as [My Post Link] 

...where q is an alias for the Posts table instance that the questions are being drawn from.

Magic Column [User Link] produces "Out of Resources" error on simple SEDE queries

Question shrunk since the issue is known and will be addressed in due time. (View complete question.)

 

Error in SEDE when using magic column: error

  • Example #1: Control query (no magic column).

  • Example #2: Example #1 + added automated magic column [Post Link]
    - queries 7 days back without error
    - change parameter to 10 or more to reproduce error.

  • Example #3: Example #1 + added custom column[My Post Link]
    - same functionality as '[Post Link]" using an additional join. (Runs properly.)

Similar question:

Workaround Links:

  • 'site://posts/' + cast(id AS nvarchar)+'|'+title as [Alt. Post Link]
  • 'site://users/' + cast(userid as nvarchar) as [Alt. User Link]
    (Source: @Rene)
rephrased
Source Link
ashleedawg
  • 1.2k
  • 8
  • 20

I ran into a "rare error" on SE Data Explorer and I've saved 3 near-identical queries on SEDE to demonstrate this potential [minor] database problem.

Unfinished so pretty simple so far, this is what the query's supposed to do:

  • List ID and CreationDate of all questions asked since 𝓷 days before "today", where 𝓷 is specified by in the parameter box below the query. (For example, 7 returns questions asked in the last 7 days, which is what the links below will default to.)

  • If the question has been answered, list the CreationDate of the first answer, and the difference (in minutes) between the ask and the answer. (If the question hasn't been answered, leave these values NULL.)


  • Example #1: (a "control"; no magic column) runs fine for any timeframe including "all of history".

  • Example #2: is the same as #1 except for an added magic [Post Link] field added. It runs fine for 7 days back. Change the parameter to 10 or more to repro the error:

    The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.

  • Example #3: is the same as #1 except I added [My Post Link]: provides the same functionality that '[Post Link]" does, using a 3rd join to the same table, which was unnecessary but for the sake of adding complexity. It works without a problem.

I've had the same error on other queries using Magic Columns. The only other mention of this error I could find is: Out-of-resources when trying to run a popular DataExplorer query"Out-of-resources when trying to run a popular DataExplorer query" (with- including a workaround from @rene which doesn't apply in this case, but showsto substitute for [User Link] - showing that the potential DB problemthis is a known issue (since at least 2016) and hasn't been addressed.)


I was directed to report any SEDE issues here although in's not a huge issue since I can easily re-create the Magic Column's functionality (in less time than it took to describe the problem):

'site://posts/' + cast(q.id AS nvarchar)+'|'+q.title  as [My Post Link] 

...where q is an alias for the Posts table instance that the questions are being drawn from.

I ran into a "rare error" on SE Data Explorer and I've saved 3 near-identical queries on SEDE to demonstrate this potential [minor] database problem.

Unfinished so pretty simple so far, this is what the query's supposed to do:

  • List ID and CreationDate of all questions asked since 𝓷 days before "today", where 𝓷 is specified by in the parameter box below the query. (For example, 7 returns questions asked in the last 7 days, which is what the links below will default to.)

  • If the question has been answered, list the CreationDate of the first answer, and the difference (in minutes) between the ask and the answer. (If the question hasn't been answered, leave these values NULL.)


  • Example #1: (a "control"; no magic column) runs fine for any timeframe including "all of history".

  • Example #2: is the same as #1 except for an added magic [Post Link] field added. It runs fine for 7 days back. Change the parameter to 10 or more to repro the error:

    The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.

  • Example #3: is the same as #1 except I added [My Post Link]: provides the same functionality that '[Post Link]" does, using a 3rd join to the same table, which was unnecessary but for the sake of adding complexity. It works without a problem.

I've had the same error on other queries using Magic Columns. The only other mention of this error I could find is: Out-of-resources when trying to run a popular DataExplorer query (with a workaround from @rene which doesn't apply in this case, but shows that the potential DB problem hasn't been addressed.)


I was directed to report any SEDE issues here although in's not a huge issue since I can easily re-create the Magic Column's functionality (in less time than it took to describe the problem):

'site://posts/' + cast(q.id AS nvarchar)+'|'+q.title  as [My Post Link] 

...where q is an alias for the Posts table instance that the questions are being drawn from.

I ran into a "rare error" on SE Data Explorer and I've saved 3 near-identical queries on SEDE to demonstrate this potential [minor] database problem.

Unfinished so pretty simple so far, this is what the query's supposed to do:

  • List ID and CreationDate of all questions asked since 𝓷 days before "today", where 𝓷 is specified by in the parameter box below the query. (For example, 7 returns questions asked in the last 7 days, which is what the links below will default to.)

  • If the question has been answered, list the CreationDate of the first answer, and the difference (in minutes) between the ask and the answer. (If the question hasn't been answered, leave these values NULL.)


  • Example #1: (a "control"; no magic column) runs fine for any timeframe including "all of history".

  • Example #2: is the same as #1 except for an added magic [Post Link] field added. It runs fine for 7 days back. Change the parameter to 10 or more to repro the error:

    The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.

  • Example #3: is the same as #1 except I added [My Post Link]: provides the same functionality that '[Post Link]" does, using a 3rd join to the same table, which was unnecessary but for the sake of adding complexity. It works without a problem.

I've had the same error on other queries using Magic Columns. The only other mention of this error I could find is: "Out-of-resources when trying to run a popular DataExplorer query" - including a workaround from @rene to substitute for [User Link] - showing that this is a known issue (since at least 2016) and hasn't been addressed.


I was directed to report any SEDE issues here although in's not a huge issue since I can easily re-create the Magic Column's functionality (in less time than it took to describe the problem):

'site://posts/' + cast(q.id AS nvarchar)+'|'+q.title  as [My Post Link] 

...where q is an alias for the Posts table instance that the questions are being drawn from.

Source Link
ashleedawg
  • 1.2k
  • 8
  • 20

"Magic Column: [User Link]" produces "Out of Resources" error on simple SEDE queries

I ran into a "rare error" on SE Data Explorer and I've saved 3 near-identical queries on SEDE to demonstrate this potential [minor] database problem.

Unfinished so pretty simple so far, this is what the query's supposed to do:

  • List ID and CreationDate of all questions asked since 𝓷 days before "today", where 𝓷 is specified by in the parameter box below the query. (For example, 7 returns questions asked in the last 7 days, which is what the links below will default to.)

  • If the question has been answered, list the CreationDate of the first answer, and the difference (in minutes) between the ask and the answer. (If the question hasn't been answered, leave these values NULL.)


  • Example #1: (a "control"; no magic column) runs fine for any timeframe including "all of history".

  • Example #2: is the same as #1 except for an added magic [Post Link] field added. It runs fine for 7 days back. Change the parameter to 10 or more to repro the error:

    The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.

  • Example #3: is the same as #1 except I added [My Post Link]: provides the same functionality that '[Post Link]" does, using a 3rd join to the same table, which was unnecessary but for the sake of adding complexity. It works without a problem.

I've had the same error on other queries using Magic Columns. The only other mention of this error I could find is: Out-of-resources when trying to run a popular DataExplorer query (with a workaround from @rene which doesn't apply in this case, but shows that the potential DB problem hasn't been addressed.)


I was directed to report any SEDE issues here although in's not a huge issue since I can easily re-create the Magic Column's functionality (in less time than it took to describe the problem):

'site://posts/' + cast(q.id AS nvarchar)+'|'+q.title  as [My Post Link] 

...where q is an alias for the Posts table instance that the questions are being drawn from.