Giter Site home page Giter Site logo

Comments (6)

bmunkholm avatar bmunkholm commented on August 19, 2024

How would you define that limit? What happens when it is overloaded?

On Wed, Jul 8, 2015 at 2:50 AM, Tim Oliver [email protected] wrote:

In instances such as the Realm Plugin where multiple Realm files can be
programmatically opened at once in the Browser, we'll need to implement an
upper limit to ensure that the Browser does't get overloaded.

At present, if a sufficiently large number of Realm files is passed to the
Browser, it'll attempt to open them all until it runs out of resources.


Reply to this email directly or view it on GitHub
#41.

from realm-browser-osx.

TimOliver avatar TimOliver commented on August 19, 2024

At present this is what happens if it gets overloaded:
6d5e0380-24c8-11e5-8272-ed656ddbee34

For the time being, we're going to add a prompt to the Browser for the user to confirm if the plugin tries to open more than 5 .realm files at once.

from realm-browser-osx.

jpsim avatar jpsim commented on August 19, 2024

@TimOliver this should be a very simple fix, could you dedicate a few minutes when you're back online to address this?

from realm-browser-osx.

bmunkholm avatar bmunkholm commented on August 19, 2024

It this a real problem? Who wants to open that many files? And if they do,
there is an error informing about what's wrong.

On Thu, Jul 9, 2015 at 7:07 PM, JP Simard [email protected] wrote:

@TimOliver https://github.com/TimOliver this should be a very simple
fix, could you dedicate a few minutes when you're back online to address
this?


Reply to this email directly or view it on GitHub
#41 (comment)
.

from realm-browser-osx.

TimOliver avatar TimOliver commented on August 19, 2024

@jpsim No worries. I've added a new method that prompts the user if the delegate detects multiple files being opened at once. I've tested it by selected multiple Realm files on disk and dragging them over the Browser's icon.

Unfortunately, I haven't been able to test it against the Realm Plugin properly yet. That scenario where having two versions of Xcode on the system confuses the plugin happened to me as of today (i.e., I have Xcode-beta.app installed for running apps on my iOS 9 devices and now Realm Plugin cannot see any Realm apps on my computer), so I'm going to need to create some specialized tests on the Browser's behalf to simulate the Realm Plugin's behavior until that one's sorted out.

@bmunkholm Yep! It's a real problem. That screenshot of mine is what happened when I was testing out the Realm Plugin against my own app's usage of Realm. My app creates a discrete Realm file for each user document for the purposes of storing cached information (Upwards of 500 Realm files in production!), so when that was tried against Realm Plugin, it tried to open every single one automatically, and the Browser couldn't cope.

Thankfully, the number of Realm files that need to be open before the Browser complains is very high (Probably more than 100 Realm files at once), so it's not something you would see under most circumstances. I've now set it that a warning appears if you try and open more than 20 files in one operation.

from realm-browser-osx.

TimOliver avatar TimOliver commented on August 19, 2024

I changed the wording slightly to ensure that there was no confusion about causing instability on the system level, and subsequently merged the changes for this one into the main branch.

from realm-browser-osx.

Related Issues (20)

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.