Can you flush the cache?

  • Is there a way to flush the (data) cache?

    I'm testing performance, by running the same set of commandes multiple times, and want to ensure caching of results is taken out of the equation

    Rgds,

    Brendon.

  • Try this: DBCC DROPCLEANBUFFERS

  • DBCC DROPCLEANBUFFERS is supposed to do it, but I haven't tested it.

  • I've tested DBCC DROPCLEANBUFFERS

    and it seems to do exactly what I want.

    Cheers.

  • Either DBCC DROPCLEANBUFFERS or DBCC FREEPROCCACHE.

    DROPCLEANBUFFERS serves to empty the data cache. Any data loaded into the buffer cache due to the prior execution is removed.

    FREEPROCCACHE serves to empty the procedure cache. Use this command to return to an un-cached state. There can be a tremendous performance difference between the first and any future times stored procedures are run because of the compilation that must take place before execution.

    Dr. Peter Venkman: Generally you don't see that kind of behavior in a major appliance.

    Patrick

    Quand on parle du loup, on en voit la queue

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply