Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martijn 10 posts 80 karma points
    Dec 01, 2015 @ 07:56
    Martijn
    0

    Query becomes slow when using Umbraco

    I have written a search query and when I run this in the Sql Management Studio this query runs fast. I het F5 and i see my results immediatly.

    But when I execute the same query when I am running Umbraco, a timeout occurs. It takes about 1-2 minuten before my query completes. As soon as I kill the Umbraco application, the query is fast again.

    So my question is, how can I prevent that my query is executed so slow?

    Is use var results = DatabaseContext.Database.Fetch<SearchResult>(query).ToArray(); to execute my query. The query variable contains the query that is fast when I run this query in Sql Management Studio, but is terrible slow when I am execute it this way.

Please Sign in or register to post replies

Write your reply to:

Draft