Code Monkey home page Code Monkey logo

mmcc.stats's Introduction

Mmcc.Stats

License Donate Chat on Discord

MMCC Statistics (player count & TPS) - available at poller.moddedminecraft.club.

OpenAPI

Build Release version

Before starting install the following dependencies:

All of the dependecies are cross-platform and can be installed on Windows, Linux and macOS.

1. Clone this repository. From now on we will be referring to the root directory of the cloned repository as ./.

2. Rename ./src/Mmcc.Stats/appsettings.default.json to ./src/Mmcc.Stats/appsettings.json and fill it in.

3. Run the ./publish.ps1 build script.

4. You will find the compiled version of the app in ./out.

mmcc.stats's People

Contributors

traceld avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

mmcc.stats's Issues

Set default dates on page load

Can we please default the dates on the input dialog box to something like:

From: 1 Week Ago
To: Today

Seems trivial to do this yourself when on the page but it has two benefits:

  1. Makes a quick run a single click operation.
  2. Reduces likelihood of anyone going back months for the sake of it.

Abysmal performance of Dapper in SelectPingsByDateAsync despite highly performant SQL query

QueryAsync<T> with the following SQL which is inside SelectPingsByDateAsync takes 4s to complete when run against the whole dataset despite taking only 0.33s in MySQL console with the same parameters.

SELECT server.serverId, server.serverName, pings.pingTime, pings.playersOnline
FROM pings
INNER JOIN server ON pings.serverId = server.serverId
WHERE pingTime >= @fromDate and pingTime <= @toDate
ORDER BY pings.pingTime;

Method in question:

public async Task<IEnumerable<ServerPingDto>> SelectPingsByDateAsync(DateTime fromDate, DateTime toDate)

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.