Comments (6)
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.
At present this is what happens if it gets overloaded:
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.
@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.
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.
@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.
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)
- Add mixpanel ping for next browser release
- Crash when trying to delete a record HOT 3
- And startup information to encourage use of Realm Studio
- The Realm Browser won't start on macOS High Sierra 10.13.1 HOT 2
- Exporting List Models To Swift HOT 2
- Creating a new object in a table with an optional data property creates a data pointer & displays extra fields
- "Connect to server" doesn't allow empty passwords HOT 1
- [wish] RealmBrowser.app is not showing the schema version of the opened realm file HOT 1
- Please enter a valid encryption key for this Realm file HOT 11
- Xcode 9.2 crashes when .realm file is open on Realm Browser 3.0.1 HOT 1
- allow can't clicked by iFunbox Could not open .realm HOT 1
- When importing data from CSV, Field defined as 'double?' got error "must be of type 'number?', got 'string'" HOT 2
- Realm Studio is bad. You should definitely keep maintaining this HOT 4
- Browser.app And Studio cannot be opened during project operation HOT 2
- Please write in the description that this project is deprecated HOT 1
- Add support for launching app with argv HOT 4
- How can i view my realm file on andriod using this on windows
- Fractional seconds not visible for Date-based properties HOT 1
- Realm "Please enter a valid encryption key for this file" HOT 3
- Cannot open realm file after update android plugin to 7.0.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realm-browser-osx.