DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Mitigate the Risks of Poor Performing Cloud Apps
  • Speed Up Your Laravel Website With Performance Optimization Tips
  • Overview of Android Networking Tools: Receiving, Sending, Inspecting, and Mock Servers
  • C# Applications Vulnerability Cheatsheet

Trending

  • Build a Serverless App Fast With Zipper: Write TypeScript, Offload Everything Else
  • Top 8 Conferences Developers Can Still Attend
  • Exploring Edge Computing: Delving Into Amazon and Facebook Use Cases
  • What You Must Know About Rate Limiting
  1. DZone
  2. Software Design and Architecture
  3. Performance
  4. RavenDB MVC Profiler Support

RavenDB MVC Profiler Support

Oren Eini user avatar by
Oren Eini
·
Jul. 18, 11 · News
Like (0)
Save
Tweet
Share
2.67K Views

Join the DZone community and get the full member experience.

Join For Free

i am not sure if you have noticed, but for the last few weeks, we have had a small tag on the top left side of the blog. clicking on this would reveal the following information:

image

as you can see, generating the main page took 6 sessions and 8 calls to the ravendb server. this reflect the fact that when building ravendb, we were far more focused on the architecture and paid very little attention to the actual performance of the system and mostly focus on being correct and architecturally sound.

i’ll point out that with no attention to performance, the new blog out performs the old blog quite handily.

we can dig a bit deeper into what is going on here:

image

as you can see, we have a list of requests made to the server, including all of the queries made. this make it quite easy to figure out what is actually going on. for bonus points, we can even dig deeper and look at an individual request:

image

from debugging stand point, it is incredibly helpful. from a performance optimization perspective, it is invaluable. this feature alone has been responsible for three different bug fixes (all of them very hard to figure out without it) and has guided us into several performance improvements for the blog.

we took the idea from the mini mvc profiler , i really liked the idea of that, but didn’t really like the code, so we set out to build raven.client.mvcintegration.dll.

in your mvc application, you need to reference that assembly and:

  • in the application_start method, call raven.client.mvcintegration.ravenprofiler.initializefor(documentstore).
  • in your main layout, include the following line: @ raven.client.mvcintegration.ravenprofiler.currentrequestsessions()

that would setup the ravendb profiler for mvc applications, giving you direct access to whatever is going on in that request. we even handle ajax requests as well smile

and a minor point as well, this feature is probably not something that you would use in production, but since i wanted to show it off for you, i made sure that it can be run in production. in order to facilitate this, there is a way to redact the information sent to the client, scrubbing it from any personal information. that has been done on this blog, but it is a fairly simple system, compromised mostly of the ability to black list specific fields by name. i would be careful when exposing this to the world, but especially if you are using this to see what is going on against a remote ravendb instance, it can be invaluable tool.

optimization Blog Requests application Dig (command) Production (computer science)

Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Mitigate the Risks of Poor Performing Cloud Apps
  • Speed Up Your Laravel Website With Performance Optimization Tips
  • Overview of Android Networking Tools: Receiving, Sending, Inspecting, and Mock Servers
  • C# Applications Vulnerability Cheatsheet

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: