Giter Club home page Giter Club logo

mockdatastoreservice's People

Contributors

buildthomas avatar fraktality avatar howmanysmall avatar louiek22 avatar nobledraconian avatar raphtalia avatar validark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mockdatastoreservice's Issues

Unit Testing

I want to get MockDataStoreService working so I can test DataStore2 (and possibly push this upstream into Lemur as the default DataStoreService implementation), I'll try and add as much as necessary until my local copy stops erroring, then push upstream.

Issues that need figuring out:

LPGhatguy/lemur#115

Split MockDataStoreService into several files

  • MockDataStoreService
  • MockGlobalDataStore
  • MockOrderedDataStore
  • MockDataStorePages
  • MockDataStoreUtils (all utility functions go here)
  • MockDataStoreConstants (all constants go here)

Might require an extra class that acts as the master of all data/interfaces and that MockDataStoreService/MockGlobalDataStore/MockOrderedDataStore accesses this instead of owning the data itself, otherwise it requires adding extra methods to these classes which would clash with the design principle of sticking to the Roblox API.

Can't export OrderedDataStore to JSON

My code:

local MockDataStoreService = require(script.DataStoreService)

local ods = MockDataStoreService:GetOrderedDataStore("myDataStore")
print(ods:ExportToJSON())

Yes, the myDataStore OrderedDataStore does actually have keys in it. But this code just prints []

Create Downloadable rbmx Source File

  • MockDataStore has a lot of sub modules and it is annoying to copy everything multiple times initially and upon updates.
    creating a Release or Downloadable Source file would improve user experience greatly (not everyone uses Rojo)

Yield times are unrealistic

I refer to a :UpdateAsync request which tries to write to the DataStore, not when it returns nil.

I don't know about other requests / scenarios.

So when I was testing it a while back I noticed :UpdateAsync calls are unrealistically fast.

In my testing, yield times for a simple table with some small contents when using actual datastores is something like this:

  • On Studio: 1.5 - 3.0 seconds;
  • In-Game: .3 - .8 seconds:

But when I used this module it took WAYY less than that, something like .02 seconds or close.

This might be what this person referenced here:

#18

But I'm not sure.

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.