Giter VIP home page Giter VIP logo

samplesolrapp's Introduction

SampleSolrApp

Steps to run sample application

1. Using SolrNet NHibernate integration
 * create database SampleSolrApp on your local SQLExpress
 * edit solr-1.4.0\start.bat to set correct path to samplesolrnet\solr-1.4.0\solr\multicore\
 * run solr-1.4.0\start.bat
 * start SampleSolrApp using VS.NET, should run as http://localhost:25827/
 * SampleSolrApp will create db schema and setup solr index
 * run Simulate_10_Users_Should_Crash_Application test from SampleSolrApp.Tests\SimulateMultipleUsersTester.cs using NUnit
 * test will simulate 10 users, every user makes 20 request to http://localhost:25827/home/add -> this action is inserting Products to db and should add documents to Solr
 * we should have 200 products in db and 200 documents in Solr
 * unfortunately we get about 30 errors, which means we get about 170 products in db, but only about 130 product documents in Solr
 
2. Using own simple NHibernate listener
 * comment out lines in SampleSolrApp.Core.NhInfrastructure.NHibernateRegistry between // Solr & NHibernate integration -> and // <- Solr & NHibernate integration
 * comment in lines in SampleSolrApp.Core.NhInfrastructure.NHibernateRegistry between // manual NHibernate integration -> and // <- manual NHibernate integration 
 * stop the dev web server
 * start SampleSolrApp using VS.NET, should run as http://localhost:25827/
 * run Simulate_10_Users_Should_Crash_Application test from SampleSolrApp.Tests\SimulateMultipleUsersTester.cs using NUnit
 * test will simulate 10 users, every user makes 20 request to http://localhost:25827/home/add -> this action is inserting Products to db and should add documents to Solr
 * we should have 200 products in db and 200 documents in Solr
 * we get 200 products and 200 documents in Solr, we get few different error, which don't break db and Solr index integrity

samplesolrapp's People

Contributors

marekstachura avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

ankitkumar9018

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.